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

REGRESSION: JInternalFrame/JDesktopPane.OUTLINE_DRAG_MODE bug

XMLWordPrintable

    • rc1
    • x86
    • linux
    • Not verified



      Name: jk109818 Date: 01/08/2002


      FULL PRODUCT VERSION :
      blaboo@cormack:~$ java -version
      java version "1.4.0-beta3"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta3-b84)
      Java HotSpot(TM) Client VM (build 1.4.0-beta3-b84, mixed mode)


      FULL OPERATING SYSTEM VERSION :

      blaboo@cormack:~$ cat /proc/version
      Linux version 2.4.14-xfs (root@cormack) (gcc version 2.95.3
      20010315 (release)) #3 Thu Dec 27 00:50:58 PST 2001



      A DESCRIPTION OF THE PROBLEM :
      when using the JDesktopPane optimized outline drag mode,
      moving a JInternalFrame near the boundaries (say, the lower
      right corner) results in bad mojo. the frame almost looks
      like it is doing the normal drag mode and its paint gets
      smeared all across the desktop background. will send .png,
      .java on request. will try to look into it before going to
      school tomorrow. do believe it used to work in 131


      REGRESSION. Last worked in version 1.3.1

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      1. build JDesktopPane with
      setDragMode(JDesktopPane.OUTLINE_DRAG_MODE)
      2. build a JInternalFrame with some content (necessary?)
      3. move JInternalFrame close to a boundary. let simmer for
      a few seconds.
      4. now try to move frame towards boundary. should make a
      big mess.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      expect clean window moving. instead get big mess.

      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      import javax.swing.*;
      import java.awt.*;

      public class Example extends JFrame {
         
         public static void main(String args[]) { new Example(); }
         
         public Example() {
            super("eg");
            init();
            pack();
            setVisible(true);
         }
         
         void init() {
            // build simple interface
            JDesktopPane jdp = new JDesktopPane();
            jdp.setPreferredSize(new Dimension(600,600));
            jdp.setDragMode(JDesktopPane.OUTLINE_DRAG_MODE);
            setContentPane(jdp);
            
            JInternalFrame jif = new JInternalFrame("boo");
            JPanel jp = new JPanel();
            jp.add(new JSlider());
            jp.add(new JLabel("blaf00"));
            jif.setContentPane(jp);
            jif.pack();
            jif.setVisible(true);
            getContentPane().add(jif);
         }
      }

      ---------- END SOURCE ----------

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

      (Review ID: 137993)
      ======================================================================

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: