> Embed a painting into a html web page
>
> I have designed a 2D GUI interface that has many
> shapes.
> How can I embed it into a html web page or jsp?
> I have no idea about it.
>
> Thanks
Is this an image? An applet? A swing app? What exactly is it? With what was it made?
A demo:
import java.awt.*;
import java.applet.Applet;
class TFrame extends Frame {
private Button button;
public TFrame() {
button = new Button("Test");
button.setSize(100, 20);
button.setLocation(5, 5);
this.add(button);
this.setSize(300, 300);
}
}
public class FrameTest extends Applet {
public void init() {
TFrame t = new TFrame();
this.add(t);
this.setSize(300, 300);
}
}
And the HTML file:
<html>
<body>
<applet code="FrameTest.class" width=300 height=300></applet>
</body>
</html>