/[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.17 by mkoch, Fri Oct 22 18:16:00 2004 UTC revision 1.18 by mkoch, Fri Dec 24 11:50:42 2004 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 345  public class JRootPane extends JComponen Line 350  public class JRootPane extends JComponen
350      getLayeredPane().add(menuBar, JLayeredPane.FRAME_CONTENT_LAYER);      getLayeredPane().add(menuBar, JLayeredPane.FRAME_CONTENT_LAYER);
351    }    }
352    
353      public void setMenuBar(JMenuBar m)
354      {
355        setJMenuBar(m);
356      }
357    
358    /**    /**
359     * DOCUMENT ME!     * DOCUMENT ME!
360     *     *
# Line 355  public class JRootPane extends JComponen Line 365  public class JRootPane extends JComponen
365      return menuBar;      return menuBar;
366    }    }
367    
368      public JMenuBar getMenuBar()
369      {
370        return getJMenuBar();
371      }
372    
373    /**    /**
374     * DOCUMENT ME!     * DOCUMENT ME!
375     *     *
# Line 569  public class JRootPane extends JComponen Line 584  public class JRootPane extends JComponen
584      defaultButton = newButton;      defaultButton = newButton;
585      firePropertyChange("defaultButton", oldButton, newButton);      firePropertyChange("defaultButton", oldButton, newButton);
586    }    }
587    
588      /**
589       * @since 1.4
590       */
591      public int getWindowDecorationStyle()
592      {
593        return windowDecorationStyle;
594      }
595    
596      /**
597       * @since 1.4
598       */
599      public void setWindowDecorationStyle(int style)
600      {
601        if (style != NONE
602            && style != FRAME
603            && style != INFORMATION_DIALOG
604            && style != ERROR_DIALOG
605            && style != COLOR_CHOOSER_DIALOG
606            && style != FILE_CHOOSER_DIALOG
607            && style != QUESTION_DIALOG
608            && style != WARNING_DIALOG)
609          throw new IllegalArgumentException("invalid style");
610        
611        int oldStyle = windowDecorationStyle;
612        windowDecorationStyle = style;
613        firePropertyChange("windowDecorationStyle", oldStyle, style);
614      }
615  }  }

Legend:
Removed from v.1.17  
changed lines
  Added in v.1.18

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