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 73315 - Scroll bar problems with dual monitor
Summary: Scroll bar problems with dual monitor
Status: RESOLVED WONTFIX
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: David Simonek
URL:
Keywords: DUAL_MONITOR
Depends on:
Blocks:
 
Reported: 2006-03-07 01:50 UTC by algo
Modified: 2008-12-22 11:45 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 algo 2006-03-07 01:50:09 UTC
My system uses dual monitors with different resolutions.  I normally run the IDE
on the monitor considered the "secondary monitor" by XP.  When I start the
NetBeans IDE it automatically goes to the second monitor as expected, however,
scrolling by using the scrollbar destroys the image in the windows (forcing the
window to scroll using the cursors works fine).  If I set both monitors to the
same resolution prior to starting NetBeans, the problem does not present itself.
 Additionnally, if the problem is   present, all I have to do is change the
resolution on the XP "secondary monitor".  It seems the information is then
propagated to the IDE and the scrolling problem vanishes.

My guess is that the IDE gets the resolution information used by the scrollbar
from the "primary monitor" when it is first initializes and uses this erroneous
data there after unless a resolution change is passed on.

Hope this helps.  I really like the IDE.

Alain Gosselin
Comment 1 Jiri Prox 2006-03-09 15:56:38 UTC
Reassigning to core, please evaluate.
Comment 2 David Simonek 2006-03-15 17:31:50 UTC
Hello,

cou you (reporter) describe exact steps to reproduce the problem (how I run
netbeans on second monitor?) and provide image of the problem? Thanks.

Also, could you try another java app, like SwingSet2 demo from JDK? Error may
not be specific only to netbeans. Also please tell me your JDK version and
NetBeans version/build number you use, thanks.   
Comment 3 ssilvert 2006-03-28 17:59:13 UTC
I have verified that the SwingSet2 demo has the same problem.  This is a pretty
nasty bug.  I don't want to switch IDE's but I will have to if I can't find a
better workaround.

Please don't close this until somebody files a bug with the JDK.  BTW, I am
using JVM 1.5.0._06.
Comment 4 ssilvert 2006-03-28 19:22:41 UTC
It looks like this has already been reported and fixed in Mustang.
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6331073
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5086872

Possible workarounds are:
* Use the larger screen as the primary (can't be done on my laptop)
* Set the resolution on the secondary screen to <= primary
* Use the Mustang beta

Comment 5 pholthuizen 2007-01-12 07:22:07 UTC
Currently I use NB 5.5, JDK & JRE 1.6.0 and I still have the same issues too.
When using the scrollbars only the java code in the main editor window gets
garbled. The linbe numbers side bar and all the rest of the IDE updates correctly.

The problem sometimes occurs after some hours of working.

I use a dual display, NB on my "secondary" monitor and both monitors have a
different resolution (the secondary has the highest resolution).

As a workaround I currently resize the NB window on my secondary window such
that only a few pixels of the window also appear on my primary monitor. When I
do that the problem disappears.
Comment 6 David Simonek 2007-11-27 15:13:21 UTC
I've got additional report from user, quoting:

----
I encounter this bug, too.
http://www.netbeans.org/issues/show_bug.cgi?id=73315
The base bug has been fixed, but it is still reproducible.
I have no account to login and update the status. Could you please update the status of this bug?
I know a workaround is that, moving the NetBeans' window, make part of the window appear in the primary monitor, then
the scroll bar will works well.
Please refer to the attachment.
 
Best Regards!
Vincent Yang
---
Comment 7 Lukas Hasik 2008-04-10 21:22:49 UTC
moving opened issues from TM <= 6.1 to TM=Dev
Comment 8 David Simonek 2008-11-21 13:25:39 UTC
All these problems appears with other java apps (like SwingSet demo) too and we unfortunately can do nothing with them
on NetBeans side.