Solved

Wait Cursor

Posted on 2003-11-20
2
314 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
fibonacci ten numbers 4 54
Detect Closed Loops (circles, figure-8s, etc) in PNG Images 6 77
collection output issue 9 66
What is the use of Forwarding Class in java 1 37
By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:

726 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