aspose file tools*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes ///applet/// Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "///applet///" Watch "///applet///" New topic
Author

///applet///

chao-long liao
Ranch Hand

Joined: Jul 29, 2001
Posts: 78
import java.applet.Applet;
import java.awt.*;
public class Sample extends Applet {
private String text = "Hello World";
public void init() {
add(new Label(text));
}
public Sample (String string) {
text = string;
}}
Viewing with another .htm,compile OK,but runtime error,I forget the reason.?
Applet can not has the constructor ?
Thanks.
liao
Jamal Hasanov
Ranch Hand

Joined: Jan 08, 2002
Posts: 411
Try to add default constructor
public Sample () {
this("default");
}
Jamal Hasanov
www.j-think.com
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ///applet///