Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

setCursor to JFrame doesn't work...

843805Nov 2 2006 — edited Nov 3 2006
If we instantiate the JFrame and then

setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));

or

setCursor(new java.awt.Cursor(java.awt.Cursor.WAIT_CURSOR));

doesn't work, which means cursor isn't changed.

However, on top of the subpane or panel or any container that attached,
to JFrame, getContentPane(), the cursor shows as if nothing happens.
Why?

If it is designated not to work for JFrame, why it has to be inherited setCursor() ?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 1 2006
Added on Nov 2 2006
8 comments
344 views