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

Java 1.1.x win32 cursors set on disabled window not honoured

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.1.5
    • client-libs
    • x86
    • windows_95, windows_nt

      On Solaris if you have a window on which non-standard cursors have
      been set on AWT components and you disable the window, the components
      are disabled but the cursors remain as the programmer specified.

      However on win32 when you disable a window, any
      cursor - eg busy cursor - you set on the window or any components
      in the window is not honoured.
      It reverts to the standard Windows arrow.
      The problem here is that this is inconsistent with the behaviour exhibited on Solaris.

      Test case :
      import java.awt.*;

      public class CursorTest extends Frame
      { Button b;
         Panel p;
      public CursorTest()
      {
                      p = new Panel();
      setLayout(new FlowLayout());
      p.add(b=new Button("Button1"));
      p.add(new Label("Label1"));
      p.add(new Checkbox("Checkbox"));
      p.add(new TextField("Button1"));
      add("Center",p);
      pack();
      reshape(100,100,300, 400);
      show();
      p.setCursor(new Cursor(Cursor.WAIT_CURSOR));
             b.setCursor(new Cursor(Cursor.WAIT_CURSOR));
      setCursor(new Cursor(Cursor.WAIT_CURSOR));

      Toolkit.getDefaultToolkit().sync();
      disable();
      }

      public static void main(String[] args)
      {
      new CursorTest();
      }
      }

            rramsunw Ranganathan Ram (Inactive)
            prr Philip Race
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: