当前位置: 技术问答>java相关
求.java最简单程序
来源: 互联网 发布时间:2015-06-24
本文导语: 各位大兄,有最简单的java的.class应用于网页的例子么,比如在.htm文件中输入参数param name="strColor" value="FFFFFF",在网页上显示一个类似label的控件,.java的源文件怎么写呀? | // .html --------------...
各位大兄,有最简单的java的.class应用于网页的例子么,比如在.htm文件中输入参数param name="strColor" value="FFFFFF",在网页上显示一个类似label的控件,.java的源文件怎么写呀?
|
// .html
-------------------------------------------------------
Your browser is completely ignoring the <APPLET> tag!
// .java
-------------------------------------------------------
class MyApplet extends Applet {
..
public void init() {
String color = getParameter("strColor");
// color will be set to "FFFFFF"
...
}
...
}
-------------------------------------------------------
Your browser is completely ignoring the <APPLET> tag!
// .java
-------------------------------------------------------
class MyApplet extends Applet {
..
public void init() {
String color = getParameter("strColor");
// color will be set to "FFFFFF"
...
}
...
}