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

Component JInternalFrame does not draw cursor correctly during resizing and movi


    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: 1.2.2
    • Fix Version/s: None
    • Component/s: client-libs


      Name: kaC94536 Date: 01/31/2000

      Component JInternalFrame does not draw cursor correctly during its resizing and moving.

      Frame window of the following test contains a JInternalFrame component.

      To see described effect try to do followed:

      1. When the cursor is Default and it is inside the JInternalFrame component, led the cursor
      to the bottom left (or right) corner of the tested frame. The cursor becomes SW Resize
      (or SE Resize).Click and drag test's corner down and left. In most cases the cursor becomes
      Default during dragging (before you release mouse)!

      2. When the cursor is Default, led cursor to the left inner side of the JInternalFrame component.
      The cursor becomes West Resize. Move mouse up. In first time when the cursor becomes NW Resize,
      if you click and drag, frame must begin to change it's size. But now you move tested frame!


      import javax.swing.*;
      import java.awt.*;
      import java.awt.event.*;

      public class test extends JFrame {
          public test() {
              super("JInternalFrame test");
              getContentPane().add( new TestPanel(), BorderLayout.CENTER );

          public static void main(String[] args) {
              JFrame frame = new test();
              frame.addWindowListener(new WindowAdapter() {
                  public void windowClosing(WindowEvent e) {
              frame.setSize(new Dimension(500,300));

      class TestPanel extends JPanel {
          protected JInternalFrame aFrame;
          public TestPanel() {
              aFrame = new JInternalFrame("Test", true);
              aFrame.getContentPane().add(new JLabel("I'm a JInternalFrame component!"));



      Name: kaC94536 Date: 02/04/2000

      The cursor also does not become Move during JInternalFrame moving.



          Issue Links



              • Assignee:
                hgajewsksunw Hania Gajewska (Inactive)
                kanisimosunw Konstantin Anisimov (Inactive)
              • Votes:
                0 Vote for this issue
                1 Start watching this issue


                • Created: