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 72241 - scrolling only updates 1st and last lines of display
Summary: scrolling only updates 1st and last lines of display
Status: RESOLVED INVALID
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P2 blocker (vote)
Assignee: issues@editor
URL:
Keywords: DUAL_MONITOR
Depends on:
Blocks:
 
Reported: 2006-02-03 20:53 UTC by airash
Modified: 2007-11-05 13:42 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 airash 2006-02-03 20:53:15 UTC
When my editor (or output) window is on my second monitor (I have a docked
laptop with a stand-alone monitor as an extended desktop), I often get a strange
scrolling problem:
When scrolling (with either the mouse wheel or arrow keys), the screen only
updates the 1st and last lines of text; everything in between remains frozen. 
The middle portion seems "alive" in that clicking on errors after a compile
opens up the code on the editor pane.  However, the links aren't lined up with
the links visible, so it appears that I am actually clicking on a link below the
visible screen.

Set up: Windows XP, 5.0 RC2, Dell Latitude D600 and NEC MultiSync FE950 (2nd
monitor).
Comment 1 Marian Mirilovic 2006-02-08 08:52:00 UTC
Could you reproduce this problem with just one monitor? WHat JDK version are you
using?
Comment 2 Marian Mirilovic 2006-02-08 14:06:04 UTC
Comments from reporter:
---------------------
It seems to happen only on the second monitor and only in SDI mode.  I
have discovered that if I change the resolution of the second monitor
while Netbeans is open, the problem goes away for the entire session.
However, it returns the next time I load Netbeans.

I have attached a picture of the info from my Netbeans help -> about
screen.  BTW, is there no way to select and copy the text from that
page anymore?  I seem to recall doing that in previous versions, but
that could just be short circuiting in my brain.

Thanks for the help.

JDK 1.5.0_06
-----------------------------
Comment 3 Miloslav Metelka 2006-02-08 14:25:18 UTC
IMO you've hit a variant of JDK problem
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6331073 (fixed in Mustang -
J2SE 6.0) There are certain workarounds listed in the JDK issue that you might try.
I'm confident that this is a JDK issue because what you see is part of the
behavior of the (JScrollPane's default) blit scrolling i.e. the image is
scrolled by moving image's bytes in the offscreen buffer and just the remaining
part is rendered in a usual way. For some reason moving of the bytes in the
offscreen image is not performed which causes the behavior that you observe.