由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Java版 - How to combine java code with applet?
相关主题
Re: How to write to a file on server in an applet?Java的中文读写问题
a question regarding applet从文件读入数据得到的是bytes
赶快帮帮我!How do a Servlet sent a Applet?
再问个java的蠢问题,别骂我Re: experience of handling local files in applet?
愣是笨到家----整不明白applet的pathRe: SWING APPLET如何显示IMAGE?
为什么我这个html找不到applet class?java的一些错误认识(转贴)
请教个html显示utf8 string的问题 (转载)Top Ten Errors Java Programmers Make(3)
Question about displaying ChineseHelp: 有大虾在 Applet 中用过 UDP socket 麽?
相关话题的讨论汇总
话题: applet话题: html话题: java话题: combine话题: code
进入Java版参与讨论
1 (共1页)
z*y
发帖数: 1311
1
I once knew how to write a program that has both applet and main() in it. It
can be run as "> java XXX" or in an html. But now I forget. Can someone tell
me how to do that? Thanks.
m******y
发帖数: 588
2
You need to compile the applet code into XXX.class using jdk.
Then you can use the applet in the html page like



<br /> HTML Test Page<br />


The applet will appear below in a Java enabled browser.

codebase = "."
code = "XXX.class"
name = "TestApplet"
width = "400"
height = "300"
hspace = "0"
vspace = "0"
align = "middle"
>




【在 z*y 的大作中提到】
: I once knew how to write a program that has both applet and main() in it. It
: can be run as "> java XXX" or in an html. But now I forget. Can someone tell
: me how to do that? Thanks.

1 (共1页)
进入Java版参与讨论
相关主题
Help: 有大虾在 Applet 中用过 UDP socket 麽?愣是笨到家----整不明白applet的path
理解Java Servlets [fwd]为什么我这个html找不到applet class?
Servlet开发初步 [fwd]请教个html显示utf8 string的问题 (转载)
Java basic concept(1)Question about displaying Chinese
Re: How to write to a file on server in an applet?Java的中文读写问题
a question regarding applet从文件读入数据得到的是bytes
赶快帮帮我!How do a Servlet sent a Applet?
再问个java的蠢问题,别骂我Re: experience of handling local files in applet?
相关话题的讨论汇总
话题: applet话题: html话题: java话题: combine话题: code