Bloodraeven
Programmer
ok i have been staring at the code for Mousedown for a few days now and it will not seem to work for me. this is the code:
import java.awt.event.*;
import java.awt.*;
public class mouseclictest extends java.applet.Applet {
int _x=0,_y=0;
public void init () {
}
public boolean mouseDown(Event e, int x, int y) {
return true;
}
public void paint(Graphics g){
g.drawString(_x+","+_y,20,20);
}
}
every single time i try to run the code in a java applet i get a API depracation warning and it will not run in t JApplet window. Anyone have a bright idea of how to fix this?
import java.awt.event.*;
import java.awt.*;
public class mouseclictest extends java.applet.Applet {
int _x=0,_y=0;
public void init () {
}
public boolean mouseDown(Event e, int x, int y) {
return true;
}
public void paint(Graphics g){
g.drawString(_x+","+_y,20,20);
}
}
every single time i try to run the code in a java applet i get a API depracation warning and it will not run in t JApplet window. Anyone have a bright idea of how to fix this?