KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > swingwtx > swing > JApplet


1 /*
2    SwingWT
3    Copyright(c)2003-2004, R. Rawson-Tetley
4  
5    For more information on distributing and using this program, please
6    see the accompanying "COPYING" file.
7  
8    Contact me by electronic mail: bobintetley@users.sourceforge.net
9  
10    $Log: JApplet.java,v $
11    Revision 1.2 2004/03/22 15:28:52 bobintetley
12    Complete stub Applet implementation
13
14    Revision 1.1 2004/03/21 17:22:54 bobintetley
15    Compatibility methods for awt Graphics, List and Label. Dummy Applet implementation
16
17    
18  */

19
20
21 package swingwtx.swing;
22
23 /**
24  * Dummy JApplet class for Swing applet descendants.
25  * Doesn't do anything as Applets are pretty
26  * pointless under SwingWT (and unsupported).
27  *
28  * This is for those apps that have an Applet
29  * and Frame interface (so they compile).
30  *
31  * @author Robin Rawson-Tetley
32  */

33 public class JApplet extends swingwt.applet.Applet {
34
35     public swingwt.awt.Container getContentPane() {
36     return this;
37     }
38
39     public void setContentPane(swingwt.awt.Container pane) {
40     }
41
42     public swingwt.awt.Container getRootPane() {
43     return this;
44     }
45     
46 }
47
Popular Tags