/[classpath]/classpath/javax/swing/JApplet.java
ViewVC logotype

Diff of /classpath/javax/swing/JApplet.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.9 by mkoch, Sat Sep 25 13:27:52 2004 UTC revision 1.10 by mkoch, Sat Sep 25 19:21:05 2004 UTC
# Line 53  public class JApplet extends Applet Line 53  public class JApplet extends Applet
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    {    {
# Line 141  public class JApplet extends Applet Line 144  public class JApplet extends Applet
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);
# Line 228  public class JApplet extends Applet Line 230  public class JApplet extends Applet
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)

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26