package Gui; |
import javax.swing.*; |
import java.awt.*; |
import static net.mindview.util.SwingConsole.*; |
public class BorderLayout1 extends JFrame { |
public BorderLayout1() { |
add(BorderLayout.NORTH, new JButton( "North" )); |
add(BorderLayout.SOUTH, new JButton( "SOUTH" )); |
add(BorderLayout.EAST, new JButton( "EAST" )); |
add(BorderLayout.WEST, new JButton( "WEST" )); |
add(BorderLayout.CENTER, new JButton( "CENTER" )); |
} |
public static void main(String[] args) { |
run( new BorderLayout1(), 300 , 250 ); |
} |
} |