53 |
implements RootPaneContainer |
implements RootPaneContainer |
54 |
{ |
{ |
55 |
private static final long serialVersionUID = 7269359214497372587L; |
private static final long serialVersionUID = 7269359214497372587L; |
56 |
|
|
57 |
public static final int HIDE_ON_CLOSE = 0; |
public static final int HIDE_ON_CLOSE = 0; |
58 |
public static final int EXIT_ON_CLOSE = 1; |
public static final int EXIT_ON_CLOSE = 1; |
59 |
public static final int DISPOSE_ON_CLOSE = 2; |
public static final int DISPOSE_ON_CLOSE = 2; |
60 |
public static final int DO_NOTHING_ON_CLOSE = 3; |
public static final int DO_NOTHING_ON_CLOSE = 3; |
61 |
|
|
62 |
private int close_action = EXIT_ON_CLOSE; |
private int close_action = EXIT_ON_CLOSE; |
63 |
private boolean checking; |
|
64 |
protected JRootPane rootPane; |
protected JRootPane rootPane; |
65 |
|
protected boolean rootPaneCheckingEnabled; |
66 |
|
|
67 |
public JApplet() |
public JApplet() |
68 |
{ |
{ |
144 |
getRootPane().setGlassPane(glassPane); |
getRootPane().setGlassPane(glassPane); |
145 |
} |
} |
146 |
|
|
|
///////////////////////////////////////////////////////////////////////////////// |
|
147 |
protected void addImpl(Component comp, Object constraints, int index) |
protected void addImpl(Component comp, Object constraints, int index) |
148 |
{ |
{ |
149 |
super.addImpl(comp, constraints, index); |
super.addImpl(comp, constraints, index); |
230 |
|
|
231 |
protected boolean isRootPaneCheckingEnabled() |
protected boolean isRootPaneCheckingEnabled() |
232 |
{ |
{ |
233 |
return checking; |
return rootPaneCheckingEnabled; |
234 |
} |
} |
235 |
|
|
236 |
protected void setRootPaneCheckingEnabled(boolean enabled) |
protected void setRootPaneCheckingEnabled(boolean enabled) |
237 |
{ |
{ |
238 |
checking = enabled; |
rootPaneCheckingEnabled = enabled; |
239 |
} |
} |
240 |
|
|
241 |
public void update(Graphics g) |
public void update(Graphics g) |