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

Incorrect cursor behaviour for JInternalFrame component

XMLWordPrintable

    • b17
    • x86, sparc
    • linux, solaris_8, solaris_9, windows_98
    • Verified



        Name: iaR10016 Date: 11/12/2002


        Filed By : J2SE-SQA [###@###.###
        JDK : JDK1.4.2-b05
                         (The bug is not reproducible with JDK1.4.0, JDK1.4.1)
        Platform[s] : RedHat Linux 7.3, Suse Linux 8.0, Windows 98, Windows 2000
        switch/Mode : default

        Cursor in JInternalFrame component behaves incorrectly sometimes.

        The following test example demonstrates the bug:

        --------- test.java ---------
        import javax.swing.*;
        import java.awt.*;

        public class test extends JFrame {
            public test() {
                super("JInternalFrame test");
                JDesktopPane dpane = new JDesktopPane();
                JInternalFrame internalFrame = new JInternalFrame("JInternalFrame, true");
                internalFrame.setBounds(20,20,100,150);
                internalFrame.setVisible(true);
                dpane.add(internalFrame);
                getContentPane().add( dpane, BorderLayout.CENTER );
            }

            public static void main(String[] args) {
                JFrame frame = new test();
                frame.setSize(new Dimension(400,300));
                frame.setVisible(true);
            }
        }
        -----------------------------

        Please, compile and run this example with JDK1.4.2.

        To reproduce the failure try to move mouse to the upper JInternalFrame border.
        When the cursor becomes "North resize" first time, click left mouse button and try to resize the frame.
        JInternalFrame moves instead.

        This failure affects two JCK1.4a tests:
                api/javax_swing/interactive/JOptionPaneTests.html#JOptionPane
                api/javax_swing/interactive/JInternalFrameTests.html#JInternalFrame

        Specific machine info:
        ======================
        Hostname: linux-17
        OS: Windows 98

        Hostname: linux-19
        OS: RedHat Linux 7.3

        ======================================================================

              joutwatesunw Joshua Outwater (Inactive)
              irasunw Ira Ira (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: