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 6454 - Titled Border is shifting meaning of its component`s context menu items.
Summary: Titled Border is shifting meaning of its component`s context menu items.
Status: CLOSED WONTFIX
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 3.x
Hardware: All All
: P4 normal (vote)
Assignee: _ ttran
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2000-04-26 21:27 UTC by Jan Stola
Modified: 2003-06-30 18:28 UTC (History)
0 users

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 Jan Stola 2000-04-26 21:27:17 UTC
Open new JFrame and put JButton into it. Change border of this button to Titled border.
Right-click on this button to get context menu. Meaning of some items is shifted upward.
Forexample choose delete -> you will see Rename dialog.

Notes: * It is necessary to set Title property of Titled border. Everything is OK
           unless you set this property.
         * It`s not a special feature of JButton the same hold for many components, but
           not for all. For example if you try to do the same with JPanel, you can see
           something similar but not the same: If you place mouse pointer above Delete,
           the selected item will be Rename.
Comment 1 Jan Stola 2000-06-28 11:51:59 UTC
It seems that the first part of the reported bug is not in the IDE by now.
But the second part is still there. Steps to reproduce:
1. Create some form (e.g. JFrame)
2. Put JPanel into the form.
3. Set _border_ property of that JPanel to TitledBorder.
4. Don't forget to set the _title_ property of the TitleBorder (Everything is OK
unless you set this property.
5. Right-click on your JPanel to get context menu.
6. Hold the mouse button to hold the context menu visible.
7. Put your mouse pointer above _delete_ menuitem.
8. The _rename_ menuitem will be selected despite the fact that the mouse
pointer is above the _delete_ menuitem.
9. If you release your mouse button in this situation the delete action will
be called.
Comment 2 Marek Grummich 2000-07-25 09:08:59 UTC
Priority is changed to P4 (normal).
Comment 3 Tomas Pavek 2000-08-02 16:17:59 UTC
This phenomenon is fairly interesting... It happens only when you hold down the
right mouse button (if released everything is OK). And it depends also on
component's top border - not only titled but e.g. also empty border is
significant (the bigger the border is the bigger is mouse-shift in the popup
menu).
Anyway, this is not a bug in the form editor, but somewhere in the JPopupMenu
implementation (Swing). See also bug 6411 which points to bad positioning of
the popup menu in the bottom-right screen corner.
Comment 4 Quality Engineering 2003-06-30 18:28:08 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.