📄 appletparam.~jav
字号:
import java.applet.Applet;
import java.awt.Graphics;
public class AppletParam extends Applet
{
//用于接收HTML传递过来的参数
private String s="";
private int x;
private int y;
public void init()
{
s=this.getParameter("vstring");
x=Integer.parseInt(this.getParameter("x"));
y=Integer.parseInt(this.getParameter("y"));
}//init
public void paint(Graphics g)
{
if(s!=null)
{ g.drawString(s,x,y); }
}//paint
}//AppletParam
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -