Solved

User defined cursors

Posted on 1998-09-01
6
175 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
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 

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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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

Title # Comments Views Activity
servlet filter example 37 71
hibernate insert example 13 34
ejb wildfly example 2 20
Fast way to search item into Java Array (Rhino compatible) 2 31
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…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
This video teaches viewers about errors in exception handling.

840 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