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,
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
=-)