Solved

Create a JPanel with a Name displaying at the top in Netbeans

Posted on 2009-04-06
3
1,301 Views
Last Modified: 2013-12-14
I am currently using netbeans and how do I display the name on the JPanel as shown in the picture from Netbeans?
gui-screenshot.GIF
0
Comment
Question by:namsu55
  • 2
3 Comments
 

Accepted Solution

by:
namsu55 earned 0 total points
ID: 24083541
Found it, under border properties, it is titled border.
0
 
LVL 12

Expert Comment

by:basav_com
ID: 24083543
setBorder(BorderFactory.createTitledBorder(title));



0
 
LVL 12

Expert Comment

by:basav_com
ID: 24083547
0

Featured Post

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

777 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