Issue 136 in ntorrent: Visual glitches in "Plugin" menu

1 view
Skip to first unread message

codesite...@google.com

unread,
Feb 5, 2012, 8:06:47 AM2/5/12
to ntorr...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect

New issue 136 by mich...@binaervarianz.de: Visual glitches in "Plugin" menu
http://code.google.com/p/ntorrent/issues/detail?id=136

What steps will reproduce the problem?
1. Open the "Plugin" menu and hover mouse over one of the checkbox entries.
2. Click one of the entries.

What is the expected output? What do you see instead?
Checkboxes in menus are supposed to be highlighted when hovering over them.
Clicking on a checkbox should close the menu.
Instead, there is no highlighting and clicking does not close the menu.

What version of the product are you using? On what operating system?
0.5.1 on Debian Linux with Metal look and feel

The problem is that PluginHandlerMenuBar adds JCheckBoxes to the menu bar
(lines 67-80). Instead, it should use JCheckBoxMenuItems.
The class documentation of JMenu says that menus may contain JMenuItems and
JSeparators, but no other classes. JCheckBoxMenuItem is a subclass of
JMenuItem, and therefore correct, while JCheckBox is not allowed.

Michael

codesite...@google.com

unread,
Feb 5, 2012, 10:15:15 AM2/5/12
to ntorr...@googlegroups.com
Updates:
Status: Accepted

Comment #1 on issue 136 by kei...@gmail.com: Visual glitches in "Plugin"
menu
http://code.google.com/p/ntorrent/issues/detail?id=136

Superb issue report!

Reply all
Reply to author
Forward
0 new messages