import java.awt.*;
public class applet1 extends javax.swing.JApplet {
String h1 = getParameter("headline1");
String h2 = getParameter("headline2");
String h3 = getParameter("headline3");
@Override
public void init() {
}
@Override
public void paint(Graphics screen) {
Graphics2D screen2D = (Graphics2D) screen;
screen2D.drawString(h1, 20, 30);
screen2D.drawString(h2, 20, 30);
screen2D.drawString(h3, 20, 30);
}
}
and the html file it's uploaded in:
<html> <title> </title> <head> </head> <body> <applet code="java.class" codebase="src" height="100" width="200"> <param name="headline1" value="marcus eat vegard"> <param name="headline2" value="but"> <param name="headline3" value="vegard makes marcus puke him up again"> </applet> </body> </html>
+rep for answering what so ever :)
Edited by Roger, 14 May 2011 - 08:59 PM.


Sign In
Create Account

Back to top









