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 49913 - [dual monitor] menus fail with dual display setup
Summary: [dual monitor] menus fail with dual display setup
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 4.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: David Simonek
URL:
Keywords: DUAL_MONITOR
Depends on:
Blocks:
 
Reported: 2004-10-05 00:24 UTC by cbrettin
Modified: 2008-12-22 23:55 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 cbrettin 2004-10-05 00:24:20 UTC
Fedora 2/GNOME problem happens with both jdk1.4.2
and 1.5.0. NB 4.0beta2

Netbeans seems to start in the primary display; if
I move the netbeans window to the other (right)
monitor context menus (right click) fail to appear
sometimes (condition appears to be able to
spontaneously appear and recover)
(also affects menus file, edit, build, run but not
refactor, versioning, tools etc; truely weird)
Auto complete menus don't seem to be appected.

(no logged messages other than ordinary startup)

Might be a java bug, but I've never had it happen
with 3.6
Comment 1 David Simonek 2004-10-05 10:25:07 UTC
Hmm, weird. Could you somehow find some background logic when menus
work and when not? I can't reproduce so far...
Also, to verify that it's Netbeans bug, not Swing's, please could you
try to run SwingSet2 demo contained in jdk demos and play with context
and main menu as well? Thanks.
Comment 2 cbrettin 2004-10-07 06:31:45 UTC
More experimenting...
Still haven't found consistent way to triger, although dragging the
maximixed window to the left monitor, then to the right seems to work
most of the time (particularly immeadiately after startup);
de-maximise, maximise once in the right monitor seems seems to fix.

It seems that the problem also affects tooltips; all tooltips, why it
doesn't affect all menus is an interesting problem.

Found similar (probably same) problem where instead of not appearing
the menus appear at the right edge of the left monitor; since the same
menus (and tooltips) are affected and with a similar sparodic
appearance I think this is the same problem, but in this case the
wrongly placed menus are not visible for some reason.

After playing a bit with the SwingSet2 demo I couldn't get menus to
misbehave, but tool tips consistently had the positioning problem, so
JDK/X/GNOME problems are at least partly to blame.
Comment 3 Jan Chalupa 2005-03-16 22:36:39 UTC
This looks like a well known problem with menus on multiple displays. See issue
#38375 if interested in details. Also see issue #47719 for a likely duplicate. 

Running NetBeans with the -J-Dnetbeans.popup.no_hack=true option should help. To
use it permanently, add it to the etc/netbeans.conf file.
Comment 4 Milos Kleint 2005-07-21 08:25:36 UTC
should be fixed now, netbeans popup hacks are gone. I haven't tested on linux
though, just win xp.
Comment 5 Petr Chytil 2006-12-07 14:25:53 UTC
verified in:

NetBeans IDE Dev (Build 200612041900)
1.6.0-rc; Java HotSpot(TM) Client VM 1.6.0-rc-b104
Linux version 2.6.17-10-generic running on i386
en_US (nb); UTF-8