Solved

Making panel stands out on frame.

Posted on 2004-04-12
2
184 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 
LVL 14

Accepted Solution

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

Expert Comment

by:Tommy Braas
ID: 10810691
=-)
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
check java version using powershell 13 457
SHA2 certs for IIS AND Java? 2 136
pagenation logic how it is working in my code 1 81
Java program running SQL query 5 62
An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
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:
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
Suggested Courses

732 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