Skip to content

Commit 580862f

Browse files
committed
Default sizes are now variables
1 parent a82b296 commit 580862f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/MainFrame.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public class MainFrame extends JFrame implements ActionListener, ComponentListen
2323
JPanel buttonPanel;
2424
JButton resizeButton, exitButton;
2525

26-
int widthSize, heightSize;
26+
int widthSize = 325, heightSize = 180;
2727

2828
public MainFrame() {
2929
flowLayout.setAlignment(FlowLayout.LEFT);
@@ -60,7 +60,7 @@ public MainFrame() {
6060

6161
// Window setup
6262
this.setTitle("Textfield resizes window");
63-
this.setSize(325, 180);
63+
this.setSize(widthSize, heightSize);
6464
this.setLayout(null);
6565
this.setLocationRelativeTo(null);
6666
this.addComponentListener(this);

0 commit comments

Comments
 (0)