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.
I encounter an intermittent but consistent problem with checkmarks showing up in all menu items, see attached image. The problem is in an application created using NetBeans Platform 6.7.1, Java 1.6.0_16. It is intermittent, is does not happen every time I use the application, but is quite frequent. Once the check masks show up they stay around till I restart the application. I did not find much information about it. Someone discussed a similar issue a while back: http://www.nabble.com/Problem-with-Netbeans-Platform-Menu-Icons-tt19142938.html#a19142938
Created attachment 89924 [details] Screen shot of menus with unwanted check marks
looks like a jdk bug to me i noticed the check marks have orange background. is that correct color according to your windows theme?
Created attachment 89991 [details] Mixture of correct and incorrect check marks
In Excel 2007 check masks are shown on orange background. In NetBeans IDE check marks are on blue background (see attached image), that is probably a separate issue. When NetBeans Platform application starts the correct check marks are on blue background as in NetBeans IDE. When the unwanted check masks show up (with orange background), the check masks that were before with blue background now show 'transparent' background and have different shape (see attached image).
Created attachment 89993 [details] Check marks in NetBeans IDE
can you reproduce this with a plain platform application (without any of your modules)? does it happen when running your application with metal or nimbus look & feel as well?
Created attachment 92716 [details] Simple code for reproducing the bug Sample code that can reliably reproduce the problem. On startup menus look fine. To induce unwanted check marks select File > Directory Chooser (just close the dialog after it shows up).
The issue is not random. It can be reliably reproduced using the sample code.
this is a bug in JIDE library, i've reproduced the orange check marks in a plain swing app.
Can you attach a sample plain swing app to reproduce the problem. I will file bug report with JIDE Soft.
Created attachment 113229 [details] swing app demonstrating the problem with JIDE
I got information on workaround from JIDE support. You need to add LookAndFeelFactory.installJideExtension(LookAndFeelFactory.VSNET_STYLE_WITHOUT_MENU) After the Look and Feel was initialized to avoid check mark issue. For instance, the sample Swing code would need to be modified like this. for(UIManager.LookAndFeelInfo info : UIManager.getInstalledLookAndFeels() ) { if( "Windows".equals( info.getName() ) ) { UIManager.setLookAndFeel( info.getClassName() ); LookAndFeelFactory.installJideExtension(LookAndFeelFactory.VSNET_STYLE_WITHOUT_MENU); break; } } Any suggestion how this should be correctly done in a NetBeans platform application? A custom ModuleInstall?
try adding that to ModuleInstall.restored() method