View Single Post
Old Feb 22nd, 2006, 7:11 AM   #13
ReggaetonKing
Sexy Programmer
 
ReggaetonKing's Avatar
 
Join Date: Nov 2005
Location: New Jersey
Posts: 891
Rep Power: 3 ReggaetonKing is on a distinguished road
Send a message via AIM to ReggaetonKing
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!
ReggaetonKing is offline   Reply With Quote