|
JFrame.setDefaultLookAndFeelDecorated(true);
JDialog.setDefaultLookAndFeelDecorated(true);
Personally think that if you just need JFrame not to display the title, then you should use JWindow.
But if you need to make a title yourself, the above is the correct usage. For example, the default Metal style, you need to set it before you can see the Metal title bar. |
|