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 68120 - Menu pops up on wrong screen
Summary: Menu pops up on wrong screen
Status: RESOLVED DUPLICATE of bug 47719
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 4.x
Hardware: Macintosh All
: P3 blocker (vote)
Assignee: David Simonek
URL:
Keywords: DUAL_MONITOR
Depends on:
Blocks:
 
Reported: 2005-11-04 20:05 UTC by jag
Modified: 2008-12-22 21:54 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 jag 2005-11-04 20:05:10 UTC
On a machine with multiple displays,
install NetBeans 4.1 (any app will do, so long as it uses swing menus)
Start NetBeans.
Drag it to the secondary display - which must be to the left of the primary display.
Click on any item in the menu bar
The menu pops up on the primary display, instead of next to the item in the menu bar.

I've only verified this on Macintosh, but it should also fail on other platforms.  This was
originally filed with Apple as a bug in OS X, but they traced it back to NetBeans:

From: Karl Hsu <khsu@apple.com>
Date: November 3, 2005 6:07:03 PM PST
To: Francois Jouaux <fjouaux@apple.com>
Cc: Ted Goldstein <tgoldstein@apple.com>
Subject: Re: Please verify a bug fix for NetBeans on Mac OS X


This appears to be a bug in NetBeans (4.1).

In org.openide.awt.JMenuPlus.setPopupMenuVisible(), there is a chunk of code that tries to calculate 
where the JMenu should be shown. There are 2 different codepaths, keyed off of a System Property 
"netbeans.popup.no_hack". By default, this value is false. If I set it to true, the menus appear in the 
correct location and on the correct monitor. 

Karl
Comment 1 Marian Mirilovic 2005-11-04 22:23:13 UTC
True, it was a netbeans bug. It's already fixed. So if you want, you can
download NB5.0 Beta or one of the last daily builds.
Comment 2 Marian Mirilovic 2005-11-04 22:25:11 UTC

*** This issue has been marked as a duplicate of 47719 ***