Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Wait Cursor

Posted on 2003-11-20
2
313 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: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone 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

Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
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 learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

828 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