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 47181 - Cannot add JDialog: Menu disappears
Summary: Cannot add JDialog: Menu disappears
Status: CLOSED FIXED
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 4.x
Hardware: PC Windows ME/2000
: P4 blocker (vote)
Assignee: Jan Stola
URL:
Keywords: JDK_SPECIFIC
Depends on:
Blocks:
 
Reported: 2004-08-13 05:15 UTC by Peter Nabbefeld
Modified: 2006-03-24 09:57 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 Peter Nabbefeld 2004-08-13 05:15:43 UTC
I want to add a JDialog to my 'Other components'.
Using 'Add from Palette -> Swing' a menu appears
with a scrollbar, the JDialog entry hidden, of
course (because it is at the end of the list).
When I now try to scroll to the end of the list,
the menu disappears immediately when I'm pressing
the left mouse-button over the scrollbar.

However, as JDialog cannot be added to another
swing component, I can get the effect by trying to
add a JDialog to the existing form using the
component palette: instead of being added (as this
is impossible), the JDialog component goes to the
'Other components'.

Nevertheless, this is a bug and should be fixed as
soon as possible.

BTW: I'm using w2k with NB4.0dev (8th Aug.),
screen resolution is 1024 x 768.
Comment 1 Jan Stola 2004-08-17 14:42:12 UTC
I am sorry I am not able to reproduce this issue exactly. I am
able to scroll the content of the popup menu using scrollbar,
but I agree that there is an issue if the mouse cursor is over
some menu item (e.g. not over the scrollbar and not outside the popup
menu) when the scrolling is finished. In such a case the popup menu
disappears as soon as you move the cursor away from this menu item.
Comment 2 Peter Nabbefeld 2004-08-17 14:55:13 UTC
I'll download most recent JDK 5 beta, probably it's a JDK issue.
Comment 3 Jan Stola 2004-08-17 15:05:18 UTC
My previous comment applies to JDK 1.4.2. I tried it again with
JDK 5.0 and I was able to reproduce the described behaviour.
Comment 4 Peter Nabbefeld 2004-08-17 15:07:59 UTC
Which build? I'm currently downloading build 60 - does it make sense?
Comment 5 Jan Stola 2004-08-17 15:15:16 UTC
I was able to reproduced it in 1.5.0-beta3-b60.
Comment 6 Peter Nabbefeld 2004-08-17 15:28:10 UTC
Could You file a bug against the JDK, please? I'd suppose to set
priority at least to P2 - if someone needs the last item of such a
menu, the menu would be unusable. After this I'd propose to close this
bug, as it is not an NB bug, but a JDK one.
Comment 7 Jan Stola 2004-08-18 17:08:22 UTC
The implementation of the popup menu changed in JDK 5.0 => The
implementation of the scrollable popup menu was modified.
It should work by now.
Comment 8 _ rkubacki 2004-12-10 15:37:40 UTC
Is there a bug filled against JDK1.5? Which one?
Comment 9 Marek Grummich 2005-07-11 16:12:40 UTC
verified