File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 1010 * @create 2012-03-30
1111 *
1212 * @modifiedby Achintha Gunasekara
13+ * @modifiedby Kydon Chantzaridis
1314 * @modweb http://www.achinthagunasekara.com
1415 * @modemail contact@achinthagunasekara.com
16+ * @modemail kchantza@csd.auth.gr
1517 */
1618
1719package simplejavacalculator ;
@@ -70,15 +72,17 @@ public UI() {
7072
7173 public void init () {
7274 frame .setVisible (true );
73- frame .setSize (350 , 280 );
75+ frame .setSize (330 , 280 );
7476 frame .setDefaultCloseOperation (JFrame .EXIT_ON_CLOSE );
7577 frame .add (panel );
7678
7779 panel .add (text );
78- for (int i = 0 ; i < 10 ; i ++) {
80+
81+ for (int i = 1 ; i < 10 ; i ++) {
7982 panel .add (but [i ]);
8083 but [i ].addActionListener (this );
8184 }
85+ panel .add (but [0 ]);
8286
8387 panel .add (butAdd );
8488 panel .add (butMinus );
You can’t perform that action at this time.
0 commit comments