File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Properly setting cursor

tukhes gamer
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
I agree. Here's the link:
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic