Skip to content

Commit 831cf76

Browse files
authored
Update UI.java
1 parent feccc53 commit 831cf76

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/simplejavacalculator/UI.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@
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

1719
package 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);

0 commit comments

Comments
 (0)