Solved

Making panel stands out on frame.

Posted on 2004-04-12
2
182 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
ID: 10810494
btnPanel.setBorder(new BevelBorder(BevelBorder.RAISED));
0
 
LVL 14

Expert Comment

by:Tommy Braas
ID: 10810691
=-)
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone 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
Application launch issue with Apache Tomcat 5 63
web services creation SOAP vs REST 5 56
Desingning Refactoring existing code 2 26
ejb on wildfly 5 30
After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…

840 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