This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 137446

Summary: JApplet Look and Feel configuration
Product: guibuilder Reporter: carentrica <carentrica>
Component: CodeAssignee: issues@guibuilder <issues>
Status: NEW ---    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: Windows XP   
Issue Type: ENHANCEMENT Exception Reporter:

Description carentrica 2008-06-17 15:02:42 UTC
At the moment, when creating a JApplet form, the only look and feel is Metal. There seems no way to change it from the 
GUI designer. It should surely be the system look and feel so it has the "right" appearance on all platforms.

At the moment, I modify the run() method inside init() before deployment to:

initComponents()
try {
   UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
   SwingUtilities.updateComponentTreeUI(app); // app is a reference to the JApplet instance.
} catch(Exception ex) {
   ex.printStackTrace();
}

But ideally we need access to all available look and feel styles during design so that components can be properly 
placed in all cases.