java - Getting Applet not initialized error -
is right in programme??
when run screen appears says applet not initialized
import java.applet.applet; import java.awt.*; import javax.swing.*; public class jobseekerlogin extends frame { public void createframe(){ frame frame = new frame("frame in java swing"); frame.setsize(400, 400); frame.setvisible(true); label lb = new label("username"); add("east",lb); add("west",new textarea("")); label lb1 = new label("password"); add("east",lb1); add("west",new textarea("")); } public static void main(string []args){ jobseekerlogin obj = new jobseekerlogin(); obj.createframe(); } }
this not applet. think need check out life cycle of applet here:
http://docs.oracle.com/javase/tutorial/deployment/applet/lifecycle.html
Comments
Post a Comment