?
Solved

Making panel stands out on frame.

Posted on 2004-04-12
2
Medium Priority
?
186 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 320 total points
ID: 10810494
btnPanel.setBorder(new BevelBorder(BevelBorder.RAISED));
0
 
LVL 14

Expert Comment

by:Tommy Braas
ID: 10810691
=-)
0

Featured Post

Enroll in August's Course of the Month

August's CompTIA IT Fundamentals course includes 19 hours of basic computer principle modules and prepares you for the certification exam. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

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

Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
The viewer will learn how to implement Singleton Design Pattern in Java.
Suggested Courses
Course of the Month11 days, 16 hours left to enroll

752 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