Results 1 to 3 of 3
Thread: applets are not initialised
- 08-09-2009, 09:44 PM #1
Member
- Join Date
- Aug 2009
- Posts
- 2
- Rep Power
- 0
applets are not initialised
hello
i have written a simple applet program just to check how applets work..
import java.applet.Applet;
import java.awt.*;
/*<APPLET
CODE= applet.class
WIDTH= 200
HEIGHT= 300 >
</APPLET>*/
public class applet extends Applet
{
public Textfield text;
public void init()
{
text = new TextField(20);
add(text);
text.setText("Hello from java");
}
}
when i run this program on command prompt as
c:\>appletviewer applet.java
it opens an applet window but doesnt give any msg as hello from java
and also gives as "applets are not initialised".
i heard that there is method to initiate an applet
can u pls tell me that method or any remedy on this...???????
-
You need to first compile your java file to a class file, then use appletviewer to run the class file (without a file extension, I believe).
- 08-10-2009, 08:24 AM #3
Member
- Join Date
- Aug 2009
- Posts
- 2
- Rep Power
- 0
Similar Threads
-
Can't see any Applets
By pyr0chem in forum Java AppletsReplies: 9Last Post: 12-17-2008, 04:24 AM -
again applets and apples
By willemjav in forum Java AppletsReplies: 0Last Post: 04-22-2008, 12:00 AM -
applets on mac what´s going on?
By willemjav in forum Java AppletsReplies: 6Last Post: 04-19-2008, 07:03 PM -
applets & threads
By willemjav in forum Java AppletsReplies: 2Last Post: 04-04-2008, 06:59 AM -
Applets and dll
By peiceonly in forum Java AppletsReplies: 1Last Post: 04-01-2007, 10:16 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks