You will need to first configure the appearance and appearance of the cross-platform interface (as someone commented before he called the metal). Then, before creating the frame, you need to request that the borders be drawn in appearance.
try { UIManager.setLookAndFeel( UIManager.getCrossPlatformLookAndFeelClassName()); } catch (Exception e) { }
It will look the way you want. Since the cross-platform appearance is metallic in Sun JRE.
// Get window decorations drawn by the look and feel. JFrame.setDefaultLookAndFeelDecorated(true); // Create the JFrame. JFrame frame = new JFrame("A window");
And this will make the created JFrame have borders as you describe.
Varun madiath
source share