Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Container pane = gui.getContentPane();
- pane.setLayout(new GridLayout(3, 3));
- JPanel panel = new JPanel();
- panel.setBackground(Color.black);
- pane.add(panel);
- panel = new JPanel();
- panel.setBackground(Color.white);
- pane.add(panel);
Add Comment
Please, Sign In to add comment