?
Solved

User defined cursors

Posted on 1998-09-01
6
Medium Priority
?
178 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
[X]
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
  • 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 200 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
Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

 

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: 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

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 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…
The viewer will learn how to implement Singleton Design Pattern in Java.
Suggested Courses
Course of the Month11 days, 12 hours left to enroll

752 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