Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void init()
- {
- Container pane = getContentPane();
- JPanel p = new JPanel(new BorderLayout());
- JPanel topPan = new JPanel();
- JPanel botPan = new JPanel(new FlowLayout());
- JButton sub = new JButton();
- JTextField number = new JTextField();
- JButton add = new JButton();
- botPan.add(sub);
- botPan.add(number);
- botPan.add(add);
- p.add(topPan, BorderLayout.CENTER);
- p.add(botPan, BorderLayout.SOUTH);
- pane.add(p);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement