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

Redraw problems when moving window over Swing component

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P4
    • None
    • 1.3.0
    • client-libs
    • sparc
    • solaris_7

    Description



      Name: boT120536 Date: 01/30/2001


      java version "1.3.0"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0)
      Java HotSpot(TM) Client VM (build 1.3.0, mixed mode)

      Windows created from a Swing component like JFrame or even applets embedded into
      an HTML page and run by Java Plug-In show the following redraw bug:
      If I place a 'normal' window like a terminal window over the Java window and
      afterwards drag the terminal window away the Java window is not properly
      redrawn, i.e. the previously overlapped parts of the Java window remain grey and
      the components in this area are not redrawn.

      This only happens if I drag the window in X- and Y-direction at the same time so
      that horizontal _and_ vertical parts of the Java window have to be redrawn (i.e.
      dragging it exclusively horizontally or vertically doesn't show this bug).

      I got this bug with all applications using JFrame and embedded Swing components
      which don't overwrite the paint()-method.

        To reproduce the bug you can use Netscape and Java-PlugIn 1.3.0 with the
      SwingSet demo from the Java Plug-In page at
      http://192.9.48.9/products/plugin/1.3/demos/jfc/SwingSet2/SwingSet2.html.
      After the applet is running place a terminal window over the applet canvas so
      that it overlaps the lower right corner of the applet and an area of at least
      1/4 of the applet size (if you dragged the terminal window by mouse you have to
      release the mouse button). Now drag the terminal window with your mouse away
      from the applet in right-down direction (to ensure the applet must be redrawn on
      two edges of the terminal window simultaneously). Now you should see the
      problem.
      The same can be done with Forte for Java instead of the applet.

      I got this bug already with JDK 1.2.2 and it persisted in 1.3.0.

      I run SunOS 5.7 Generic_106541-11 sun4u sparc SUNW,Ultra-5_10 on a Sun Ultra 10
      creator 3D. I use the dtwm window manager.
      (Review ID: 115951)
      ======================================================================
      Closing bug: not reproducible in JDK 7.

      Attachments

        Activity

          People

            bagiras Oleg Pekhovskiy (Inactive)
            bonealsunw Bret O'neal (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: