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

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

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

revision 1.12.2.2 by gnu_andrew, Sat Jan 15 17:02:20 2005 UTC revision 1.12.2.3 by gnu_andrew, Sun Jan 16 15:15:13 2005 UTC
# Line 333  public class JRootPane extends JComponen Line 333  public class JRootPane extends JComponen
333    protected Container contentPane;    protected Container contentPane;
334    
335    protected JButton defaultButton;    protected JButton defaultButton;
336    
337      /**
338       * @since 1.4
339       */
340      private int windowDecorationStyle = NONE;
341        
342    /**    /**
343     * DOCUMENT ME!     * DOCUMENT ME!
# Line 346  public class JRootPane extends JComponen Line 351  public class JRootPane extends JComponen
351    }    }
352    
353    /**    /**
354       * @deprecated Replaced by <code>setJMenuBar()</code>
355       */
356      public void setMenuBar(JMenuBar m)
357      {
358        setJMenuBar(m);
359      }
360    
361      /**
362     * DOCUMENT ME!     * DOCUMENT ME!
363     *     *
364     * @return DOCUMENT ME!     * @return DOCUMENT ME!
# Line 356  public class JRootPane extends JComponen Line 369  public class JRootPane extends JComponen
369    }    }
370    
371    /**    /**
372       * @deprecated Replaced by <code>getJMenuBar()</code>
373       */
374      public JMenuBar getMenuBar()
375      {
376        return getJMenuBar();
377      }
378    
379      /**
380     * DOCUMENT ME!     * DOCUMENT ME!
381     *     *
382     * @return DOCUMENT ME!     * @return DOCUMENT ME!
# Line 569  public class JRootPane extends JComponen Line 590  public class JRootPane extends JComponen
590      defaultButton = newButton;      defaultButton = newButton;
591      firePropertyChange("defaultButton", oldButton, newButton);      firePropertyChange("defaultButton", oldButton, newButton);
592    }    }
593    
594      /**
595       * @since 1.4
596       */
597      public int getWindowDecorationStyle()
598      {
599        return windowDecorationStyle;
600      }
601    
602      /**
603       * @since 1.4
604       */
605      public void setWindowDecorationStyle(int style)
606      {
607        if (style != NONE
608            && style != FRAME
609            && style != INFORMATION_DIALOG
610            && style != ERROR_DIALOG
611            && style != COLOR_CHOOSER_DIALOG
612            && style != FILE_CHOOSER_DIALOG
613            && style != QUESTION_DIALOG
614            && style != WARNING_DIALOG)
615          throw new IllegalArgumentException("invalid style");
616        
617        int oldStyle = windowDecorationStyle;
618        windowDecorationStyle = style;
619        firePropertyChange("windowDecorationStyle", oldStyle, style);
620      }
621  }  }

Legend:
Removed from v.1.12.2.2  
changed lines
  Added in v.1.12.2.3

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