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

Cannot set Busy Cursor on JComboBox

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.1.5
    • client-libs



      Name: el35337 Date: 05/28/98


      Hello.

      I am able to set the Cursor to busy on all
      of my Swing components sitting on a JFrame except
      when I use the JComboBox. Where I set my cursor
      has no effect either (Before and after population
      of the ComboBox). I am using Swing 1.0.2
      on Win 95 with JDK1.1.5.

      I have tried to set the cursor using a loop with
      the getComponents() method from
      the container but that worked for every component
      except JComboBox.

      Here is a simplified version of the code to
      isolate the problem.

      import com.sun.java.swing.*;
      import java.awt.*;

      class TestCursor extends JFrame{

          JComboBox abox = new JComboBox();

          public TestCursor(){
              initialize();
          }

          public void initialize(){

              abox.addItem(" ");

              getContentPane().add(abox);
              setSize(500,500);
              setVisible(true);
              abox.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
               }

          public static void main(String args[]){
              TestCursor test = new TestCursor();
           
           }}
      (Review ID: 32264)
      ======================================================================

            tsantossunw Tom Santos (Inactive)
            elarsen Erik Larsen (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: