public class applet extends JApplet {
JTextArea ta = new JTextArea(10,30);
public applet() {
}
public void init() {
Container p = getContentPane();
p.setLayout(new FlowLayout());
p.add(ta);
}
public void start() {
}
public void stop() {
}
public void destroy() {
}
public class applet extends JApplet {
JTextArea ta = new JTextArea(10,30);
public applet() {
}
public void init() {
Container p = getContentPane();
be b=new be();
p.setLayout(new FlowLayout());
p.add(ta);
}
public void start() {
}
public void stop() {
}
public void destroy() {
}
public class be{
public be(){
}
}
--------------------------------------------
//manifest.txt
Main-Class: pack.applet
-----------------------------------------------------------------
//applet.html
<HTML>
<HEAD>
<TITLE>Applet Test Page</TITLE>
</HEAD>
<BODY>
<APPLET CODE = "applet.class" ARCHIVE = "applet.jar" NAME = "%s" WIDTH = 400 HEIGHT = 300 ALIGN = middle>
</APPLET>
</BODY>
</HTML>
------------------------------------------------------------
now:
javac *.java
jar cfm applet.jar manifest.txt *.class
HTMLconverter applet.html
and it dont work pls help me
03-26-2006, 02:02 PM
nspils
I don't know how much this might relate to your project, but you may have a naming conflict. Java already has a package "applet", and a class "Applet".
Try changing the names of your package and class and run things again. Any difference?