From 3fd32344be76cb3d748066f36d3bb539590e5a05 Mon Sep 17 00:00:00 2001 From: fdai7460 Date: Fri, 20 Jan 2023 14:33:52 +0100 Subject: [PATCH] Panel SetUp infunction --- src/main/java/src/MainFrame.java | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/src/main/java/src/MainFrame.java b/src/main/java/src/MainFrame.java index 7a57b6e..3865459 100644 --- a/src/main/java/src/MainFrame.java +++ b/src/main/java/src/MainFrame.java @@ -43,22 +43,6 @@ public class MainFrame extends JFrame { boxPanel.setLayout(new BoxLayout(boxPanel, BoxLayout.X_AXIS)); rootPanel.add(boxPanel); -// JPanel panel2 = new JPanel(); -// panel2.setBackground(Color.BLUE); -// panel2.setVisible(true); -// panel2.setBorder(new LineBorder(Color.PINK, 1)); -// boxPanel.add(panel2); -// boxPanel.add(Box.createHorizontalStrut(5)); -// -// JLabel numLabel2 = new JLabel(); -// numLabel2.setText("2"); -// numLabel2.setLayout(null); -// numLabel2.setVisible(true); -// panel2.add(numLabel2); - - - - JButton back = new JButton(); back.setVisible(true); back.setBounds(5, 5, 100, 25); @@ -86,6 +70,7 @@ public class MainFrame extends JFrame { + public JPanel setupJPanel() { JPanel panel = new JPanel(); panel.setBounds(100, 450, 300, 30);