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

scrollpane generating unnecessary paint calls to child when resized smaller

XMLWordPrintable

    • generic
    • solaris_10

      When a scrollpane is resized smaller such that the veiw port shrinks,
      a paint() call on teh content is invoked with the clip rect set to the
      viewport size. This causes the child to do unnecessary repainting -
      since only the view got smaller, it shouldn't have to repaint itself.

      reproducible on both winNT and solaris in jdk1.1beta3.

      Reproducible by:
      1 cd src/share/test/awt
      2 java ScrollPaneTest
      3 clone bottom scrollpane with scrollbars "as needed"
      4 in new scrollpane, grab scrollbars and drag a little bit so that
        the child canvas will repaint a rectangle equating the clip area
        in the paint call
      5 resize the window smaller such that the viewport shrinks

      Note that the child gets a paint for the entire visible region,
      even though the view didn't change.

            tballsunw Tom Ball (Inactive)
            amfowler Anne Fowler (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: