Browse Source

Setup Panel with label nr 2

remotes/origin/develop
fdai7460 2 years ago
parent
commit
fa17725cf4
  1. 9
      src/main/java/src/MainFrame.java

9
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);

Loading…
Cancel
Save