without using absolute postioning, I am trying to place two buttons on the bottom of my JPanel (control panel) that is set on the right side.I have a panel of radio buttons inside of the control panel.at the bottom of my control panel I want two buttons. When I add the button panel to the control panel
(using p.add(buttonPanel, BorderLayout.SOUTH); // P is ControlPanel)
1/30/2006 6:17:18 AM
try p.setLayout(new BorderLayout());prior to adding the interior panels.
1/30/2006 6:00:07 PM
use GridBagLayout http://java.sun.com/j2se/1.5.0/docs/api/java/awt/GridBagLayout.htmlIt lets you put things in a grid, so you can place the items more intuitively.
1/31/2006 12:08:56 AM