>>>>> "Diane" == Diane Turcotte <[EMAIL PROTECTED]> writes:
  Diane> At 03:35 PM 3/1/01 +0000, Harish Prabhu wrote:
  >> Hi Everybody,
  >> I am having a problem with setting the hourGlass Cursor for the whole Frame.
  >> I have a Main Jframe in which i display a Modal Dialog. I have a
  >> search button on the modal Dialog which will populate the Modal
  >> Dialog . This search takes quiet a while and so I display a
  >> HourGlass Cursor for the JDialog.
  >> But when i move the cursor out of the Modal Dialog area to some
  >> other area of the screen it changes back to the default cursor.
  >> I tried setting the Cursor for the MainFrame but since the DIalog is
  >> modal.. the main frame Cursor doesnt change till I close the modal
  >> Dialog.Can you please help me out ..
  >> 
  >> Thanks in advance for your help
  >> harish

  Diane> This article should help:

  Diane> http://www.javaworld.com/javaworld/javatips/jw-javatip87.html

The information in this article is useful.  I've used it in the past,
and it works fine, although I noticed that it caused problems for me
when I would run my application in the debugger (stack traces get
confused).  It should be easy enough to configure it so it doesn't get
enabled while running in the debugger.  This model also breaks down if
you use background threads to do request processing, instead of always
on the main thread.

However, I would also wonder whether this answers the original
poster's question.  He indicated he was trying to move the cursor to
"some other area of the screen".  If he meant some other window in the
application, then this is still applicable.  However, if he meant some
portion of the screen outside of any window of this application, then
that's a different issue.  AFAIK, that's not easy to do, and I
wouldn't recommend it anyway.  The fact that your application is
blocked doesn't mean that other applications are blocked.

-- 
===================================================================
David M. Karr     ; w:(425)487-8312     ; TCSI & Best Consulting
[EMAIL PROTECTED]    ; Java/Unix/XML/C++/X ; BrainBench CJ12P (#12004)

_______________________________________________
Swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/swing

Reply via email to