We are trying to set the mouse cursor to the wait cursor whenever we open a dialog box.  We have method that takes in a java.awt.Component and grabs all of its contained Components and sets the cursor on it.  This works with limited success.  If there is a List in the main panel and you move the cursor off the dialog box and over the list beneath, the cursor shows up in the busy form - every other time.  It's very consistent.  One time it will be the little watch; next time, it's an arrow.  Over any other component, the mouse never changes.  Is this a bug or are we doing it wrong?

Even better, is there a better, more "correct" way to do this?  I'm using an old method written before I came to the company so I'm not terribly familiar with the workings of mouse cursors in Java.  A coworker just hollered something about setting the cursor on a TextField after construction so that it will inherit any changes it to its parent's mouse cursor but I haven't had a chance to look at it yet.  Does anyone have any idea?  Thanks.

-- 
Justin Lee          | It's not the weight of the stone that's holding you down.
JEDI                | It's the way it fascinates your mind.  -- Tourniquet
 

Reply via email to