Solved

User defined cursors

Posted on 1998-09-01
6
170 Views
Last Modified: 2010-03-30
I'm looking for a way to define my own mouse cursors, for example, for using the "Working in Background" windows' cursor (pointer + hourglass)
0
Comment
Question by:Phantomas090198
  • 4
  • 2
6 Comments
 

Author Comment

by:Phantomas090198
ID: 1223126
Edited text of question
0
 

Author Comment

by:Phantomas090198
ID: 1223127
Edited text of question
0
 
LVL 3

Accepted Solution

by:
mjenkins earned 50 total points
ID: 1223128
You can't do this until 1.2. In 1.2 you can set the Cursor to whatever you want by creating:

Toolkit.createCustomCursor(java.awt.Image, java.awt.Point,     java.lang.String)
0
What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

 

Author Comment

by:Phantomas090198
ID: 1223129
I need to be completely sure there is no possibility to do this in 1.1

How are you so sure?
0
 
LVL 3

Expert Comment

by:mjenkins
ID: 1223130
Do you know who Amy Fowler is? She works on the AWT team for Sun. If you look through the JavaSoft web site, you'll see her name prominently mentioned in anything to do with the AWT/Swing stuff. I've asked her about this before. Actually, I've been bugging her about it since 1.0.2 came out. Custom cursor support is in 1.2. If you want to use one of the predefined cursors, that's no problem use Component.setCursor().

The only way to affect the Cursor in 1.0.2 or 1.1.x is to make native calls to do so. THat would break portability and invalidate the code's use as an applet (if that is the case). Even as an application, it would be better to use the 1.2beta4 so that your code remains "100% Java" and therefore portable.

The 1.2 Java Plug-in shouldn't be too far behind the 1.2 release, so browser support for 1.2 should be right there.
0
 

Author Comment

by:Phantomas090198
ID: 1223131
Thank you very much for your time. Now I am REALLY convinced. You deserve your points.
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

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…
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
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:

743 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now