Link to home
Start Free TrialLog in
Avatar of dkim18
dkim18

asked on

Making panel stands out on frame.

Hi!

I am trying to place panel that contains four buttons that stands out on JFrame. It is better to see the sample applet.

http://webdev.apl.jhu.edu/~rbe/java/Homework5/index.html

****************************************
public class HW5
    extends JApplet
    implements ActionListener {
...
...
...
  public void init() {
    wizardFrame = new JFrame("Configure Plotpad");
    layout = new GridBagLayout();
    container = wizardFrame.getContentPane();
...
...

    JPanel btnPanel = new JPanel();

    btnPanel.add(controls[0]);
    btnPanel.add(controls[1]);
    btnPanel.add(controls[2]);
    btnPanel.add(controls[3]);
    container.add(btnPanel, BorderLayout.SOUTH);
...
...
*************************************
I know it does stands out on JPanel, but how do I do on JFrame?

thanks,
ASKER CERTIFIED SOLUTION
Avatar of Tommy Braas
Tommy Braas
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial