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

JFrames and JDialogs do not raise or resize properly in Linux

XMLWordPrintable

    • x86
    • linux

      Name: jk109818 Date: 03/07/2002


      FULL PRODUCT VERSION :
      java version "1.4.0"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-b92)
      Java HotSpot(TM) Client VM (build 1.4.0-b92, mixed mode)


      glibc-2.2.4-6mdk
      KDE 2.2.2
      Mandrake 8.1
      Linux Kernel 2.4.17

      XFree86 Version 4.1.0 / X Window System
      (protocol Version 11, revision 0, vendor release 6510)
        Release Date: 2 June 2001
              If the server is older than 6-12 months, or if your card is
              newer than the above date, look for a newer version before
              reporting problems. (See http://www.XFree86.Org/FAQ)
      Build Operating System: Linux 2.4.8-5mdkenterprise i686 [ELF]
      Module Loader present


      A DESCRIPTION OF THE PROBLEM :
      (** Please see Comments for additional info **)

      JFrame and JDialog's that have been modified to run as in the
      Metalworks demo, with the lines:

                     javax.swing.JDialog.setDefaultLookAndFeelDecorated(true);
                     javax.swing.JFrame.setDefaultLookAndFeelDecorated(true);
                     java.awt.Toolkit.getDefaultToolkit().setDynamicLayout(true);

      Exhibit bad window manager interactions such as bad resize behaviour,
      improper raising when clicking the title-bar to raise the application,
      and sometimes the mouse-cursor will not go back to the arrow cursor
      after resizing.



      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Run the Metalworks demo from JDK 1.4.0. It uses the commands:

                     javax.swing.JDialog.setDefaultLookAndFeelDecorated(true);
                     javax.swing.JFrame.setDefaultLookAndFeelDecorated(true);
                     java.awt.Toolkit.getDefaultToolkit().setDynamicLayout(true);

      The window will come up and will not include the X Windows frame and
      decorations. Clicking on the title-bar will not raise the window above others
      that are on the screen. Open an XTerm on top of Metalworks, click
      on the title-bar. The Metalworks window will not raise as expected.

      Now try to resize the window by using the top-left corner of the window.
      Strange repainting behaviour will occur. Click, hold and drag for a while
      and the window will do a technicolor-freakout and will end up being many
      different un-intended sizes. I managed to get the window to resize off the
      screen, and once all that was visible was the corner icon.

      I have also seen the mouse-cursor remain as a 'resize window' cursor
      after doing a resize.


      This bug can be reproduced always.

      Release Regression From : 1.3.1
      The above release value was the last known release where this
      bug was known to work. Since then there has been a regression.

      (Review ID: 139955)
      ======================================================================

            Unassigned Unassigned
            jkimsunw Jeffrey Kim (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: