Solved

Wait Cursor

Posted on 2003-11-20
2
312 Views
Last Modified: 2011-04-14
Hi,

I want the cursor to always use the wait cursor no matter where on the screen the cursor is. Is this possible?
0
Comment
Question by:wallway
2 Comments
 
LVL 1

Accepted Solution

by:
FesterWim earned 50 total points
ID: 9795300
Setting a cursor in java:

Window w = new Window();

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

You can ofcourse do this on a JFrame also, since a JFrame is a subclass of Window.

Does your application window occupy the whole screen?
0
 
LVL 35

Expert Comment

by:TimYates
ID: 9796965
> Does your application window occupy the whole screen?

if not, you'll need to use JNI
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question