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

JScrollPane doesn't repaint unobscured areas while scrolling

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Duplicate
    • Affects Version/s: 5.0
    • Fix Version/s: None
    • Component/s: client-libs
    • Labels:
    • Subcomponent:
      2d
    • CPU:
      x86
    • OS:
      linux

      Description



      Name: dmR10075 Date: 03/10/2004


      Run the test below. Move the window so that it becomes partially
      obscured by Gnome toolbar or by some other window on the desktop. Scroll
      the scrollpane - either by dragging or mousewheeling. While scrolling,
      the frame should remain UNDER some other window(the best is to keep it
      under toolbar). You will see that part of the text area that comes from
      under the toolbar(becomes unobscured) is gray, it doesn't get repainted.
      Move window from under the toolbar - scrolling now makes everything
      repaint correctly.

      I was able to reproduce the bug on Linux RH9, Gnome, with JDK1.5.0
      b39,40,41.

      Test case:
      import javax.swing.*;

      public class ScrollPaneBug {
          public static void main(String[] args) throws Throwable {
              JFrame frame = new JFrame("Test for JScrollPane paint bug");
              JComponent text = new JEditorPane("text/plain",
      "fgdgfd\nfgdgfd\nfgdgfd\nfgdgfd\nfgdgfd\nfgdgfd\nfgdgfd\nfgdgfd\nfgdgfd\nfgdgfd\nfgdgfd\nfgdgfd\nfgdgfd\n");
              frame.getContentPane().add(new JScrollPane(text));
              frame.setSize(100, 150);
              frame.setVisible(true);
          }
      }

      ======================================================================

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              domsunw Dom Dom (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: