boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Java版 - How to combine java code with applet?
相关主题
Re: How to write to a file on server in an applet?
a question regarding applet
赶快帮帮我!
再问个java的蠢问题,别骂我
愣是笨到家----整不明白applet的path
为什么我这个html找不到applet class?
请教个html显示utf8 string的问题 (转载)
Question about displaying Chinese
Java的中文读写问题
从文件读入数据得到的是bytes
相关话题的讨论汇总
话题: 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版参与讨论
相关主题
从文件读入数据得到的是bytes
How do a Servlet sent a Applet?
Re: experience of handling local files in applet?
Re: SWING APPLET如何显示IMAGE?
java的一些错误认识(转贴)
Top Ten Errors Java Programmers Make(3)
Help: 有大虾在 Applet 中用过 UDP socket 麽?
理解Java Servlets [fwd]
Servlet开发初步 [fwd]
Java basic concept(1)
相关话题的讨论汇总
话题: applet话题: html话题: java话题: combine话题: code