1 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 |