KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > swingwtx > swing > JWindow


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: JWindow.java,v $
11    Revision 1.23 2004/04/16 10:19:07 dannaab
12    Misc bug fixes, InputMap implementation, preliminary undo support
13
14    Revision 1.22 2004/03/22 15:10:22 bobintetley
15    JRootPane and JLayeredPane implementation
16
17    Revision 1.21 2004/03/18 14:42:11 bobintetley
18    Fix to Window hierarchy to match Swing, and fix to allow MDI apps
19       to work under SWT 2.x
20
21    Revision 1.20 2004/01/23 08:05:32 bobintetley
22    JComboBox fixes and better Action implementation
23
24    Revision 1.19 2004/01/16 09:35:47 bobintetley
25    Full event dispatch thread support!
26
27    Revision 1.18 2004/01/09 10:33:57 bobintetley
28    Changes for JToolBar to allow platform ToolBars, mixed with other components
29
30    Revision 1.17 2004/01/05 09:10:43 bobintetley
31    Merged
32
33    Revision 1.16 2004/01/05 09:09:22 bobintetley
34    Merged Daniel's changes by hand
35
36    Revision 1.14 2003/12/16 14:51:16 bobintetley
37    Fixed hang when a window close event closes itself again
38
39    Revision 1.13 2003/12/16 11:01:02 bobintetley
40    Additional Swing compatibility
41
42    Revision 1.12 2003/12/16 09:19:02 bobintetley
43    Various small fixes to match Swing more closely
44
45    Revision 1.11 2003/12/15 15:54:25 bobintetley
46    Additional core methods
47
48    Revision 1.10 2003/12/14 09:13:38 bobintetley
49    Added CVS log to source headers
50
51 */

52
53
54 package swingwtx.swing;
55
56 import swingwt.awt.Component;
57 import swingwt.awt.Container;
58 import swingwt.awt.Frame;
59 import swingwt.awt.GraphicsConfiguration;
60 import swingwt.awt.Window;
61
62 public class JWindow extends swingwt.awt.Window implements WindowConstants, RootPaneContainer {
63     
64     public JWindow() { this((Frame)null); }
65     public JWindow(GraphicsConfiguration gc) { this(null, gc); }
66     public JWindow(Frame owner) { super(owner); }
67     public JWindow(Window owner) { super(owner); }
68     public JWindow(Window owner, GraphicsConfiguration gc) { super(owner, gc); }
69     
70     public Container getContentPane() {
71         return rootPane.getContentPane();
72     }
73     
74     public Component getGlassPane() {
75         return rootPane.getGlassPane();
76     }
77     
78     public JLayeredPane getLayeredPane() {
79         return rootPane.getLayeredPane();
80     }
81     
82     public JRootPane getRootPane() {
83         return rootPane;
84     }
85     
86     public void setContentPane(Container contentPane) {
87         rootPane.setContentPane(contentPane);
88     }
89     
90     public void setGlassPane(Component glassPane) {
91         rootPane.setGlassPane(glassPane);
92     }
93     
94     public void setLayeredPane(JLayeredPane layeredPane) {
95         rootPane.setLayeredPane(layeredPane);
96     }
97     
98 }
99
Popular Tags