hi there.
1st: i'm developing intranet-applications. and sometime a customer complains about an error. and most of the time it is hard to find the error because the things the user tells me and things that really happened differ a little bit :) so i want to integrate a java-applet into my apps. the applet should be able to capture the users screen (window) and send it via post to the server (domino server). (maybe the binary-data of the image has to be converted to a long hex-string and put into a textfield)
2nd: i want to do something similar like
http://www.lawrencegoetz.com/programs/signature/. in this case i just need to capture the applet and send it to a server.
here's the code from my first steps: (for some reason this doesnt work with the native IE-JavaVM)
unterschrift.java (simply comile with javac unterschrift.java)
--------------------------
----------
----------
----------
----------
import java.applet.Applet;
import java.awt.Event;
import java.awt.Graphics;
public class unterschrift extends Applet {
int xpoint;
int ypoint;
public boolean mouseDown(Event e, int x, int y) {
xpoint = x;
ypoint = y;
return true;
}
public boolean mouseDrag(Event e, int x, int y) {
Graphics g = getGraphics();
g.drawLine(xpoint, ypoint, x, y);
xpoint = x;
ypoint = y;
return true;
}
}
--------------------------
----------
----------
----------
----------
unterschrift.html
--------------------------
----------
----------
----------
----------
<html>
<body bgcolor=#cccccc align=center>
Unterschrift zeichnen.
<p>
<applet code="unterschrift.class" width=800 height=350>
</applet>
</body>
</html>
--------------------------
----------
----------
----------
----------
thanx in advance
ragerino
Start Free Trial