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 133628 - Menu Items are not deselected in palette when inserted in wrong place
Summary: Menu Items are not deselected in palette when inserted in wrong place
Status: RESOLVED FIXED
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-22 11:03 UTC by Petr Dvorak
Modified: 2011-10-18 12:42 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Dvorak 2008-04-22 11:03:25 UTC
Product Version: NetBeans IDE 6.1 RC2 (Build 200804170002)
Java: 1.6.0_05; Java HotSpot(TM) Client VM 10.0-b19
System: Linux version 2.6.22-14-generic running on i386; UTF-8; en_US (nb)

Product Version: NetBeans IDE Dev (Build 200804210001)
Java: 1.5.0_14; Java HotSpot(TM) Client VM 1.5.0_14-b03
System: Linux version 2.6.22-14-generic running on i386; UTF-8; en_US (nb)

1. Create a new Java application with a JFrame, open a form Visual Design for the JFrame.
2. Go to palette and click a MenuItem component (you do not need a menu bar to demonstrate this minor issue).
3. Scroll over the JFrame form in the visual design 
-> You can see the MenuItem preview by your cursor

4. Click the left or right mouse button over the JFrame form (left mouse button tries to insert the item in the place,
but it is not possible at the moment, right mouse button is - in general - used to cancel the insertion of the component
in the form)
-> Component is not inserted (correct), the MenuItem preview disappears (correct as well)

5. Now, move a mouse cursor above some other view (palette, output view, projects view, navigator... just outside the
VD), do not click or something...
6. Move the cursor back over the JFrame
-> MenuItem preview is back by the cursor, as if you didn't try to insert/cancel insertion before (as if you didn't do
step 4)...

This works on Menu, Menu Item, Menu Item/Radio-button and MenuItem/Check-box from the Swing Menus category in the
palette. The problem might be in the fact that the item in the palette remains selected after the step 4. Other
components work fine and the item in the Palette view is always deselected after the right-click (or left-click on a
wrong place).
Comment 1 Jiri Vagner 2008-12-04 12:46:20 UTC
Reproducible. Right mouse button for Swing Menus components works strange too. It should cancel insert mode, but it
invokes popup menu.

Product Version: NetBeans IDE 6.5 (Build 200811100001)
Java: 1.6.0_10; Java HotSpot(TM) Client VM 11.0-b15
System: Windows Vista version 6.0 running on x86; Cp1250; cs_CZ (nb)
Comment 2 Theofanis Oikonomou 2011-10-17 15:01:54 UTC
Fixed

http://hg.netbeans.org/jet-main/rev/6a80ff873522