|
when you have BorderLayout, you have to set the button as you want by adding another agrument to the parameters of the components!
[PHP]
Panel panel = new Panel();
panel.setLayout(new BorderLayout());
panel.add(new Button("Okay"), BorderLayout.SOUTH);
[/PHP]
Do you see what I mean?
[PHP]
panel.add(new Button("North"), BorderLayout.NORTH);
panel.add(new Button("South"), BorderLayout.SOUTH);
panel.add(new Button("East"), BorderLayout.EAST);
panel.add(new Button("West"), BorderLayout.WEST);
panel.add(new Button("Center"), BorderLayout.CENTER);
[/PHP]
__________________
I would love to change the world, but they won't give me the source code!
|