aspose file tools
The moose likes Applets and the fly likes Properly setting cursor Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "Properly setting cursor" Watch "Properly setting cursor" New topic

Properly setting cursor

tukhes gamer

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);

public void run(){


no clue why it doesnt work
Consider Paul's rocket mass heater.
subject: Properly setting cursor