java - Applet is not going to stop running -
import java.awt.eventqueue; import javax.swing.jframe; public class window1 extends jframe { private jframe frame; }
when run code applet running don't want. appreciated thx applet window
see this, stopping now?
import java.lang.runnable; import javax.swing.swingutilities; import javax.swing.jframe; public class window1 extends jframe { public static void main(string... args){ javax.swing.swingutilities.invokelater(new java.lang.runnable() { public void run() { window1 window = new window1(); window.setdefaultcloseoperation(jframe.exit_on_close); window.setbounds(200, 200, 400, 300); window.setvisible(true); } }); } }
Comments
Post a Comment