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

component height can't be greater than 32767

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P2 P2
    • None
    • 1.1.3
    • client-libs
    • other
    • solaris_2.5.1

      I have a Canvas contained within a ScrollPane. The Canvas is very tall, over
      33000 pixels. I'm using the Canvas to display text which I render using
      the Canvas' paint() method. As I scroll the Canvas within the ScrollPane
      and scroll past position 32767, the damage rect I get back in the paint()
      method has a y-coordinate which is negative. Also, my blue Canvas also flakes
      out and either isn't as tall as it should be or it turns gray.


      Run the attached test case and scroll down. As you pass location 30000, it
      will start printing out the y-coordinate of the damage rect. Notice when it
      goes negative, and notice the Canvas within the ScrollPane. The color will
      also change from blue to gray.

      I tried overriding the Maximum size, since I saw that by default it is set to
      Short.MAX_VALUE but that didn't help. This bug is currently breaking one
      piece of functionality within HotJava Views, and has the potential to screw up
      at least 2 more. Hopefully there is a workaround that I'm missing.

            jkoenigsunw Janet Koenig (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: