Solved

Making panel stands out on frame.

Posted on 2004-04-12
2
179 Views
Last Modified: 2010-08-05
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,
0
Comment
Question by:dkim18
  • 2
2 Comments
 
LVL 14

Accepted Solution

by:
Tommy Braas earned 80 total points
Comment Utility
btnPanel.setBorder(new BevelBorder(BevelBorder.RAISED));
0
 
LVL 14

Expert Comment

by:Tommy Braas
Comment Utility
=-)
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now