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

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
namsu55Asked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
namsu55Connect With a Mentor Author Commented:
Found it, under border properties, it is titled border.
0
 
basav_comCommented:
setBorder(BorderFactory.createTitledBorder(title));



0
All Courses

From novice to tech pro — start learning today.