diff --git a/src/main/java/src/MainFrame.java b/src/main/java/src/MainFrame.java index f6619af..405ff81 100644 --- a/src/main/java/src/MainFrame.java +++ b/src/main/java/src/MainFrame.java @@ -5,8 +5,6 @@ import javax.swing.border.LineBorder; import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; -import java.awt.event.MouseEvent; -import java.awt.event.MouseListener; public class MainFrame extends JFrame { @@ -41,9 +39,12 @@ public class MainFrame extends JFrame { boxPanel.setLayout(new BoxLayout(boxPanel, BoxLayout.X_AXIS)); rootPanel.add(boxPanel); - JPanel jPanel1 = setupJPannel2("1"); + JPanel jPanel1 = setupNums("1"); boxPanel.add(jPanel1); + JPanel jPanel2 = setupNums("2"); + boxPanel.add(jPanel2); + JButton back = new JButton(); back.setVisible(true); back.setBounds(5, 5, 100, 25); @@ -70,7 +71,7 @@ public class MainFrame extends JFrame { } - private JPanel setupJPannel2(String number) { + private JPanel setupNums(String number) { JPanel jPanel = new JPanel(); jPanel.setBackground(Color.BLUE); jPanel.setVisible(true);