JavaScript is disabled on your browser.
 
JavaScript is disabled on your browser.
 
 
  
 
 
 
 
All Implemented Interfaces: 
LayoutManager  
Enclosing class: 
BasicOptionPaneUI  
public static class BasicOptionPaneUI.ButtonAreaLayout 
extends Object 
implements LayoutManager  
ButtonAreaLayout behaves in a similar manner to
 FlowLayout. It lays out all components from left to
 right. If syncAllWidths is true, the widths of each
 component will be set to the largest preferred size width.
 This class should be treated as a "protected" inner class.
 Instantiate it only within subclasses of BasicOptionPaneUI.
 
 
 
 
Field Summary 
Fields   
Modifier and Type 
Field 
Description 
 
protected booleancentersChildren 
If true, children are lumped together in parent.
 
 
protected intpadding 
The padding value.
 
 
protected booleansyncAllWidths 
The value represents if the width of children should be synchronized.
 
 
 
 
 
Constructor Summary 
Constructors   
Constructor 
Description 
 
ButtonAreaLayout 
Constructs a new instance of ButtonAreaLayout.
 
 
 
 
 
Method Summary 
 
Methods declared in class java.lang.Object  
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait  
 
 
 
 
 
 
Field Detail 
 
 
padding 
protected int padding 
The padding value.
 
 
 
 
 
 
Constructor Detail 
 
ButtonAreaLayout 
public ButtonAreaLayout(boolean syncAllWidths,
                        int padding) 
Constructs a new instance of ButtonAreaLayout.
Parameters: syncAllWidths - if the width of children should be synchronizedpadding - the padding value 
 
 
 
 
 
Method Detail 
 
 
 
 
getPadding 
public int getPadding() 
Returns the padding.
Returns: the padding 
 
 
 
 
 
 
 
 
 
 
 
 
JavaScript is disabled on your browser.
 
 
  
 
Report a bug or suggest an enhancement Java SE Documentation , which contains more detailed, developer-targeted descriptions with conceptual overviews, definitions of terms, workarounds, and working code examples.Copyright  © 1993, 2025, Oracle and/or its affiliates, 500 Oracle Parkway, Redwood Shores, CA 94065 USA.license terms  and the documentation redistribution policy .