 |
 |
 |
 |
 |
 |
 |
Container
contentPane = getContentPane();
|
|
|
//Use the content pane's default
BorderLayout.
|
|
|
//contentPane.setLayout(new
BorderLayout());
|
|
|
//unnecessary
|
|
|
contentPane.add(new
JButton("Button 1 (NORTH)"),
|
|
BorderLayout.NORTH);
|
|
|
contentPane.add(new
JButton("2 (CENTER)"),
|
|
|
BorderLayout.CENTER);
|
|