jozedk / ntorrent

Automatically exported from code.google.com/p/ntorrent
GNU General Public License v3.0
0 stars 0 forks source link

Visual glitches in "Plugin" menu #136

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
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

Original issue reported on code.google.com by mich...@binaervarianz.de on 5 Feb 2012 at 1:05

GoogleCodeExporter commented 8 years ago
Superb issue report! 

Original comment by kei...@gmail.com on 5 Feb 2012 at 3:14