This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Applets and the fly likes Properly setting cursor Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Applets
Reply Bookmark "Properly setting cursor" Watch "Properly setting cursor" New topic
Author

Properly setting cursor

tukhes gamer
Greenhorn

Joined: Nov 04, 2011
Posts: 1
So I have an applet I'm trying to change the cursor for. Im running mac osx and the following code changes the cursor when my mouse has hovered over the applet but when I click on the applet it changes it to the normal mouse :S HELP!

import java.applet.*;
import java.awt.*;
public class NewClass extends Applet implements Runnable{
Cursor c;

public void init(){
c = new Cursor(Cursor.CROSSHAIR_CURSOR);
this.setCursor(c);
}

public void run(){

}

}
no clue why it doesnt work
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Properly setting cursor
 
Similar Threads
wait cursor question
URL's within a container
Hand Cursor
please help me with actionlistener
wait cursor