Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
You are viewing an older revision! See the latest version
JAVA Applet HelloBulme
JAVA-Code für HelloBulmeApplet.java
import java.applet.*;
import java.awt.*;
public class HelloBulmeApplet extends Applet
{
public void paint(Graphics g)
{
g.drawString("Hello Bulme",20,20);
}
}
Übersetzen mit:
C:\Program Files (x86)\Java\jdk1.7.0_55\bin\javac HelloBulmeApplet.java
Der Bytecode HelloBulmeApplet.class muss in eine Web-Site eingebunden werden: HelloBulmeApplet.html
<html> <title> Hello Bulme Applet </title> <body> <applet code=HelloBulmeApplet.class width=200 height=100> </applet> </body> </html>
oder start mit:
C:\Program Files (x86)\Java\jdk1.7.0_55\bin\appletviewer HelloBulmeApplet.html
Eventuell muss die Datei in den Sicherheitseinstellungen der Systemsteuerungen -> Java eingestellt werden: