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 120320 - [Vista] Strange checkboxes in menu
Summary: [Vista] Strange checkboxes in menu
Status: RESOLVED WORKSFORME
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 6.x
Hardware: PC Windows Vista
: P3 blocker with 1 vote (vote)
Assignee: issues@platform
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-29 10:37 UTC by _ alexlamsl
Modified: 2011-10-06 10:06 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screenshot (139.01 KB, image/png)
2007-10-29 10:37 UTC, _ alexlamsl
Details
IDE Startup (42.23 KB, image/png)
2007-10-30 18:09 UTC, _ alexlamsl
Details
Editor opened (43.35 KB, image/png)
2007-10-30 18:10 UTC, _ alexlamsl
Details
SwingSet2's correct behaviour (17.84 KB, image/png)
2007-10-30 18:12 UTC, _ alexlamsl
Details
Vista's Windows Explorer (74.03 KB, image/png)
2007-10-30 18:36 UTC, _ alexlamsl
Details

Note You need to log in before you can comment on or make changes to this bug.
Description _ alexlamsl 2007-10-29 10:37:05 UTC
(See Attached Image)

<comment type="random" action="(ignore|grin)">
    As part of the eyecandy campaign to make Vista superior to MacOS X, CheckboxMenuItems come in many favours: tick 
with big box, big box, small box, tick with small box, tick w/o box, ...
</comment>


Product Version: NetBeans IDE Dev (Build 200710270000)
Java: 1.6.0_05-ea; Java HotSpot(TM) Client VM 1.6.0_05-ea-b05
System: Windows Vista version 6.0 running on x86; Cp1252; en_GB (nb)
Userdir: C:\Users\User\.netbeans\dev

java version "1.6.0_05-ea"
Java(TM) SE Runtime Environment (build 1.6.0_05-ea-b05)
Java HotSpot(TM) Client VM (build 1.6.0_05-ea-b05, mixed mode, sharing)
Comment 1 _ alexlamsl 2007-10-29 10:37:52 UTC
Created attachment 51879 [details]
screenshot
Comment 2 Peter Pis 2007-10-29 14:37:27 UTC
Reassigning to "contrib" for evaluation.
Comment 3 _ alexlamsl 2007-10-29 18:43:35 UTC
Erm.... I thought "Show Diff Sidebar" is part of the standard IDE editor feature?!

And what has this to do with TTEditor?
Comment 4 Jesse Glick 2007-10-29 20:09:34 UTC
No idea what this has to do with tteditor. Probably a mistake.
Comment 5 Max Sauer 2007-10-30 12:40:37 UTC
Reassigning..
Comment 6 Stanislav Aubrecht 2007-10-30 13:46:37 UTC
the 'strange' checkbox probably just needs setOpaque( false )
Comment 7 David Simonek 2007-10-30 16:26:58 UTC
Hmm, strange. i can't reproduce on my Vista box with exactly the same JDK version. Check boxes are painted correctly,
exactly the way I see them in Windows Explorer which I used for reference comparison.

There must be some other differences as non-standard theme set or something else. Moreover we don't do anything special
in menus so I tend to think this might be more JDK/Swing issue then NB one. Reporter please try to reproduce on your
machine on SwingSet2 JDK demo app or in simple app created by netbeans visual editor and reopen with details if the bug
still persists, thanks.
Comment 8 _ alexlamsl 2007-10-30 18:08:48 UTC
The issue is readily reproducible with variance. Attached 2 more screen shots on IDE Startup and when the first source 
file is opened in editor.

Not taking into account the extra plugin's menu item, the absence / presence of the tick is spurious IMO.
Comment 9 _ alexlamsl 2007-10-30 18:09:32 UTC
Created attachment 52034 [details]
IDE Startup
Comment 10 _ alexlamsl 2007-10-30 18:10:07 UTC
Created attachment 52035 [details]
Editor opened
Comment 11 _ alexlamsl 2007-10-30 18:12:52 UTC
Created attachment 52036 [details]
SwingSet2's correct behaviour
Comment 12 _ alexlamsl 2007-10-30 18:36:21 UTC
Created attachment 52041 [details]
Vista's Windows Explorer
Comment 13 _ alexlamsl 2007-10-30 18:40:11 UTC
Oh, and the only thing I have changed theme-wise since Vista's installation is the Desktop background...
Comment 14 _ alexlamsl 2007-11-27 13:42:03 UTC
After working with a module project, I think I've figured out ways to reproduce this problem in code.

The half-size empty checkbox can be achieved by extending BooleanStateAction.

The full-size empty checkbox can be achieved by CallableSystemAction with MenuPresenter replaced with 
JCheckBoxMenuItem, and with setAction(action).

The correct behaviour can be achieved by CallableSystemAction with MenuPresenter replaced with JCheckBoxMenuItem, and 
with addActionListener(actionListener).
Comment 15 Lukas Hasik 2008-04-10 21:22:19 UTC
moving opened issues from TM <= 6.1 to TM=Dev
Comment 16 Stanislav Aubrecht 2011-10-06 10:06:49 UTC
works fine with latest jdk on ms win 7, please reopen if still reproducible, thanks