Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

newbie need help

0 views
Skip to first unread message

Muad Dib

unread,
Aug 3, 1999, 3:00:00 AM8/3/99
to
hello, i want to create an applet which automatically moves the mouse. I
know it seems stupid but ...
this is what i've done :


import java.awt.event.MouseEvent;
import java.applet.*;
public class bouge extends Applet implements Runnable{
Thread t;
public void run(){
try{
evt=new MouseEvent(this,0,0,0,300,200,1,false);
evt.translatePoint(2,2);
Thread.sleep(150);
}
catch(InterruptedException ie){}
}
protected MouseEvent evt;
}

i've an html page with :
<html>
<title> app</title>
<body>
<applet code=mousemover.class width=500" height=500">
</applet>
</body>
</html>

and i've nothing in a browser and with tha appletviewer there is the
following msg:

Exception in thread "main" java.util.MissingResourceException: Can't find
resour
ce
at java.util.ResourceBundle.getObject(ResourceBundle.java:319)
at java.util.ResourceBundle.getString(ResourceBundle.java:295)
at
sun.applet.AppletMessageHandler.getMessage(AppletMessageHandler.java:
46)
at sun.applet.AppletPanel.showAppletStatus(AppletPanel.java:658)
at sun.applet.AppletPanel.init(AppletPanel.java:200)
at sun.applet.AppletViewer.<init>(AppletViewer.java:193)
at
sun.applet.StdAppletViewerFactory.createAppletViewer(AppletViewer.jav
a:85)
at sun.applet.AppletViewer.parse(Compiled Code)
at sun.applet.AppletViewer.parse(AppletViewer.java:965)
at sun.applet.AppletViewer.main(Compiled Code)

Can anyone tell me why there is such a msg and what i can do to avoid that!
thanks


0 new messages