1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
/* Get Applet Context Example This java example shows how get applet context object using getAppletContext method of Java Applet class. */ /* <applet code="GetAppletContextExample" width=200 height=200> </applet> */ import java.applet.Applet; import java.applet.AppletContext; public class GetAppletContextExample extends Applet{ public void init(){ /* * To get Applet context object use * AppletContext getAppletContext() method. */ AppletContext appContext = getAppletContext(); } } |
Add Comment