JDK-6229329 : JScrollPanes wider than the primary screen do not render correctly on multi-monitor systems.
  • Type: Bug
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version: 1.4.2_06
  • Priority: P2
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2005-02-15
  • Updated: 2010-05-11
  • Resolved: 2005-02-18
Related Reports
Duplicate :  
Description
Run the attached app, and make the window wider than the primary monitor (note, it can be placed anywhere, even across a second and third screen). Now scroll up and down. The right part of the table draws incorrectly as show in the gif attached.

This happens on all the multi-monitor systems I have tried. 


###@###.### 2005-2-15 13:30:16 GMT

The test can be much simplified. Below is the test that reproduces the bug on my machine (WinXP, dual-head ATI Radeon 9700, primary mon 1280,0,2560,1024, secondary mon 0,0,1280,1024):

import java.awt.*;
import java.awt.event.*;

import javax.swing.*;

public class test1 {
  public static void main(String[] args) {
    final JFrame f = new JFrame();
    f.setBounds(100, 100, 2360, 300);
    final JLabel l = new JLabel("This is very-very-very-very long label");
    f.getContentPane().add(l);
    f.setVisible(true);
  }
}

In that case the whole label text is painted at correctly position (at the left side of the window) and additionally at incorrect position on the right (primary) monitor.

###@###.### 2005-2-16 10:33:46 GMT

Comments
EVALUATION This is very unlikely to be an AWT bug. It can be reproduced only with swing (or other java2d-painted) components, so I'm reassigning it to java2d. ###@###.### 2005-2-16 10:33:46 GMT The original test case shows the problem covered by: 4699831: Win32: Vertical scrolling produces incorrect results on secondary screen The (I think incorrectly) simplified test runs into a different issue, possibly: 868278 Problem with Action button tooltips with some multiple monitor configurations However, I haven't been able to reproduce the described problem with the modified test on a couple of my configurations (one is a dual ATI, another has a couple of ati boards). Since the original test runs in to a duplicate bug, closing this one as such. ###@###.### 2005-2-18 21:22:51 GMT
16-02-2005

WORK AROUND On some systems, moving the JFrame offscreen to the far left so some is off-screen, then dragging it back on, fixes the problem for the lifespan of the JFrame. This is not an acceptable solution. ###@###.### 2005-2-15 13:30:16 GMT
15-02-2005