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: | Unwanted check marks in the menus | ||
---|---|---|---|
Product: | platform | Reporter: | jsacha <jsacha> |
Component: | Window System | Assignee: | Stanislav Aubrecht <saubrecht> |
Status: | RESOLVED INVALID | ||
Severity: | blocker | ||
Priority: | P3 | ||
Version: | 6.x | ||
Hardware: | PC | ||
OS: | Windows Vista | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: |
Screen shot of menus with unwanted check marks
Mixture of correct and incorrect check marks Check marks in NetBeans IDE Simple code for reproducing the bug swing app demonstrating the problem with JIDE |
Description
jsacha
2009-10-22 15:35:45 UTC
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 |