Java Example Program / Sample Source Code
import java.applet.Applet;
import java.awt.Graphics;
import java.util.Arrays;
public class GetParameterInfo_Applet extends Applet {
public void init() {
}
public void paint(Graphics g) {
String values = getAppletInfo();
String[][] paramInfo = getParameterInfo();
g.drawString(values, 50, 50);
g.drawString(Arrays.deepToString(paramInfo), 100, 100);
}
public String getAppletInfo() {
String values = "";
values = values + "GetAppletInformation";
values = values + "JavaTips.net";
return values;
}
public String[][] getParameterInfo() {
String paramInfo[][] = { { "java", "jsp", "servlet" }, };
return paramInfo;
}
} |
|
|