Titled border issue for JPanel

appu picture appu · Apr 14, 2013 · Viewed 7.6k times · Source

I developed an application using netbeans. But the title of the titled border of JPanel has some alignment issue. In the 'show preview' the title is displaying as expected, but while running the code, the title goes up above the panel. Can any one help me to resolve this issue.

Expected panel

enter image description here

Actual panel while running the project

enter image description here

Panel properties

enter image description here

I know this is some property issue with panel. I googled by couldn't find a valid solution. Stack experts please help to resolve this issue. I am using netbeans 7.2.1

Answer

AMT picture AMT · Apr 23, 2013

Take a look at Netbeans look and feel:

http://wiki.netbeans.org/NBLookAndFeels

Default is set to Nimbus, you probably want Windows.