jdk/src/share/classes/javax/swing/JSplitPane.java
changeset 5956 e30f106a4b8b
parent 5506 202f599c92aa
child 7668 d4a77089c587
equal deleted inserted replaced
5955:94a5ce4a297b 5956:e30f106a4b8b
   240     private int dividerLocation;
   240     private int dividerLocation;
   241 
   241 
   242 
   242 
   243     /**
   243     /**
   244      * Creates a new <code>JSplitPane</code> configured to arrange the child
   244      * Creates a new <code>JSplitPane</code> configured to arrange the child
   245      * components side-by-side horizontally with no continuous
   245      * components side-by-side horizontally, using two buttons for the components.
   246      * layout, using two buttons for the components.
       
   247      */
   246      */
   248     public JSplitPane() {
   247     public JSplitPane() {
   249         this(JSplitPane.HORIZONTAL_SPLIT, false,
   248         this(JSplitPane.HORIZONTAL_SPLIT,
   250             new JButton(UIManager.getString("SplitPane.leftButtonText")),
   249                 UIManager.getBoolean("SplitPane.continuousLayout"),
   251             new JButton(UIManager.getString("SplitPane.rightButtonText")));
   250                 new JButton(UIManager.getString("SplitPane.leftButtonText")),
       
   251                 new JButton(UIManager.getString("SplitPane.rightButtonText")));
   252     }
   252     }
   253 
   253 
   254 
   254 
   255     /**
   255     /**
   256      * Creates a new <code>JSplitPane</code> configured with the
   256      * Creates a new <code>JSplitPane</code> configured with the
   257      * specified orientation and no continuous layout.
   257      * specified orientation.
   258      *
   258      *
   259      * @param newOrientation  <code>JSplitPane.HORIZONTAL_SPLIT</code> or
   259      * @param newOrientation  <code>JSplitPane.HORIZONTAL_SPLIT</code> or
   260      *                        <code>JSplitPane.VERTICAL_SPLIT</code>
   260      *                        <code>JSplitPane.VERTICAL_SPLIT</code>
   261      * @exception IllegalArgumentException if <code>orientation</code>
   261      * @exception IllegalArgumentException if <code>orientation</code>
   262      *          is not one of HORIZONTAL_SPLIT or VERTICAL_SPLIT.
   262      *          is not one of HORIZONTAL_SPLIT or VERTICAL_SPLIT.
   263      */
   263      */
   264     @ConstructorProperties({"orientation"})
   264     @ConstructorProperties({"orientation"})
   265     public JSplitPane(int newOrientation) {
   265     public JSplitPane(int newOrientation) {
   266         this(newOrientation, false);
   266         this(newOrientation,
       
   267                 UIManager.getBoolean("SplitPane.continuousLayout"));
   267     }
   268     }
   268 
   269 
   269 
   270 
   270     /**
   271     /**
   271      * Creates a new <code>JSplitPane</code> with the specified
   272      * Creates a new <code>JSplitPane</code> with the specified
   285     }
   286     }
   286 
   287 
   287 
   288 
   288     /**
   289     /**
   289      * Creates a new <code>JSplitPane</code> with the specified
   290      * Creates a new <code>JSplitPane</code> with the specified
   290      * orientation and
   291      * orientation and the specified components.
   291      * with the specified components that do not do continuous
       
   292      * redrawing.
       
   293      *
   292      *
   294      * @param newOrientation  <code>JSplitPane.HORIZONTAL_SPLIT</code> or
   293      * @param newOrientation  <code>JSplitPane.HORIZONTAL_SPLIT</code> or
   295      *                        <code>JSplitPane.VERTICAL_SPLIT</code>
   294      *                        <code>JSplitPane.VERTICAL_SPLIT</code>
   296      * @param newLeftComponent the <code>Component</code> that will
   295      * @param newLeftComponent the <code>Component</code> that will
   297      *          appear on the left
   296      *          appear on the left
   305      *          is not one of: HORIZONTAL_SPLIT or VERTICAL_SPLIT
   304      *          is not one of: HORIZONTAL_SPLIT or VERTICAL_SPLIT
   306      */
   305      */
   307     public JSplitPane(int newOrientation,
   306     public JSplitPane(int newOrientation,
   308                       Component newLeftComponent,
   307                       Component newLeftComponent,
   309                       Component newRightComponent){
   308                       Component newRightComponent){
   310         this(newOrientation, false, newLeftComponent, newRightComponent);
   309         this(newOrientation,
       
   310                 UIManager.getBoolean("SplitPane.continuousLayout"),
       
   311                 newLeftComponent, newRightComponent);
   311     }
   312     }
   312 
   313 
   313 
   314 
   314     /**
   315     /**
   315      * Creates a new <code>JSplitPane</code> with the specified
   316      * Creates a new <code>JSplitPane</code> with the specified