Article View: borland.public.jbuilder.java.language
Article #14512How to execute SETCURSOR at once ?
From: Alex
Date: Fri, 27 Aug 1999 00:00
Date: Fri, 27 Aug 1999 00:00
28 lines
1272 bytes
1272 bytes
Hello everybody,
I was fighting with the setCursor (Cursor) method for a while, thinking that
it just does nothing at all.
Now I found out that setCursor (Cursor) is executed only when the calling
method ends.
An example:
public void myMethod () {
myPanel.setCursor (Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
do_something ();
myPanel.setCursor (Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));
}
If you call myMehtod you think that setCursor (...) is ignored. but if you
don�t set the cursor back to the default you will see that the cursor is set
to the WAIT_CURSOR right after do_something() ends.
Is there a way to make the Cursor change it�s look before do_something()
begins ?
Thanks for your help !
Alex.
Technical Details
Message-ID:
<7q6smt$s1q5@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: f74b3,c39f84e4c671ac2d,start X-Google-Attributes: gidf74b3,public From: "Alex" <alexbged@linux.zrz.tu-berlin.de> Subject: How to execute SETCURSOR at once ? Date: 1999/08/27 Message-ID: <7q6smt$s1q5@forums.borland.com> X-Deja-AN: 517917561 X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 Organization: Another Netscape Collabra Server User X-MSMail-Priority: Normal Newsgroups: borland.public.jbuilder.java.language