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.
Summary: | Background property for JButton & JProgressBar doesn't reflect on the GUI builder & in Form Preview Mode | ||
---|---|---|---|
Product: | guibuilder | Reporter: | ytn01 |
Component: | Natural Layout | Assignee: | issues@guibuilder <issues> |
Status: | RESOLVED INVALID | ||
Severity: | normal | CC: | asenk |
Priority: | P1 | ||
Version: | 7.2 | ||
Hardware: | Macintosh | ||
OS: | Mac OS X | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
ytn01
2012-06-19 10:42:34 UTC
This is not a bug, but it is a specific behavior of MacOS native laf . These components, that you mentioned, ignores background color property. When you run a Form file, it runs with Nimbus laf, therefore you can see the diferences. You can use "preview->Nimbus" to see JFrame with the same laf as in runtime. Or you can change the generated code to run JFrame with Mac OS native laf (Aqua). Replace: for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) { if ("Nimbus".equals(info.getName())) { javax.swing.UIManager.setLookAndFeel(info.getClassName()); break; } } With: javax.swing.UIManager.setLookAndFeel(javax.swing.UIManager.getSystemLookAndFeelClassName()); |