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