Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6229329

JScrollPanes wider than the primary screen do not render correctly on multi-monitor systems.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P2 P2
    • None
    • 1.4.2_06
    • client-libs
    • None
    • 2d
    • x86
    • windows_xp

      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

            tdv Dmitri Trembovetski (Inactive)
            mbowyer Mark Bowyer (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: