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

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

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

revision 1.14 by mkoch, Sat Sep 25 13:27:52 2004 UTC revision 1.15 by mkoch, Sat Sep 25 16:25:15 2004 UTC
# Line 60  public class JFrame extends Frame Line 60  public class JFrame extends Frame
60    implements WindowConstants, RootPaneContainer    implements WindowConstants, RootPaneContainer
61  {  {
62    private static final long serialVersionUID = -3362141868504252139L;    private static final long serialVersionUID = -3362141868504252139L;
   protected AccessibleContext accessibleContext;  
   private int close_action = HIDE_ON_CLOSE;  
63    private static boolean defaultLookAndFeelDecorated = false;    private static boolean defaultLookAndFeelDecorated = false;
64      private int close_action = HIDE_ON_CLOSE;
65      protected AccessibleContext accessibleContext;
66      protected JRootPane rootPane;
67      protected boolean rootPaneCheckingEnabled;
68    
   public static void setDefaultLookAndFeelDecorated(boolean d)  
   {  
     defaultLookAndFeelDecorated = d;  
   }  
   
   public static boolean isDefaultLookAndFeelDecorated()  
   {  
     return defaultLookAndFeelDecorated;  
   }  
   
   /***************************************************  
    *  
    *  initia  
    *  
    *  
    *************/  
69    public JFrame()    public JFrame()
70    {    {
71      super("JFrame");      super("JFrame");
# Line 92  public class JFrame extends Frame Line 78  public class JFrame extends Frame
78      frameInit();      frameInit();
79    }    }
80    
   /***************************************************  
    *  
    *  
    *  methods, this part is shared with JDialog, JFrame  
    *  
    *  
    *************/  
   private boolean checking;  
   protected JRootPane rootPane;  
   
81    protected void frameInit()    protected void frameInit()
82    {    {
83      super.setLayout(new BorderLayout(1, 1));      super.setLayout(new BorderLayout(1, 1));
# Line 111  public class JFrame extends Frame Line 87  public class JFrame extends Frame
87    
88    public Dimension getPreferredSize()    public Dimension getPreferredSize()
89    {    {
90      Dimension d = super.getPreferredSize();      return super.getPreferredSize();
     return d;  
91    }    }
92    
93    public JMenuBar getJMenuBar()    public JMenuBar getJMenuBar()
# Line 193  public class JFrame extends Frame Line 168  public class JFrame extends Frame
168    
169    protected boolean isRootPaneCheckingEnabled()    protected boolean isRootPaneCheckingEnabled()
170    {    {
171      return checking;      return rootPaneCheckingEnabled;
172    }    }
173    
174    protected void setRootPaneCheckingEnabled(boolean enabled)    protected void setRootPaneCheckingEnabled(boolean enabled)
175    {    {
176      checking = enabled;      rootPaneCheckingEnabled = enabled;
177    }    }
178    
179    public void update(Graphics g)    public void update(Graphics g)
# Line 211  public class JFrame extends Frame Line 186  public class JFrame extends Frame
186      super.processKeyEvent(e);      super.processKeyEvent(e);
187    }    }
188    
189    /////////////////////////////////////////////////////////////////////////////////    public static void setDefaultLookAndFeelDecorated(boolean decorated)
190      {
191        defaultLookAndFeelDecorated = decorated;
192      }
193    
194      public static boolean isDefaultLookAndFeelDecorated()
195      {
196        return defaultLookAndFeelDecorated;
197      }
198    
199    public AccessibleContext getAccessibleContext()    public AccessibleContext getAccessibleContext()
200    {    {
201      return accessibleContext;      return accessibleContext;

Legend:
Removed from v.1.14  
changed lines
  Added in v.1.15

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