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 boolean
centersChildren
If true, children are lumped together in parent.
protected int
padding
The padding value.
protected boolean
syncAllWidths
The value represents if the width of children should be synchronized.
Constructor Summary
Constructors
Constructor
Description
ButtonAreaLayout (boolean syncAllWidths,
int padding)
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 synchronized
padding
- 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 For further API reference and developer documentation see the Java SE Documentation , which contains more detailed, developer-targeted descriptions with conceptual overviews, definitions of terms, workarounds, and working code examples. Java is a trademark or registered trademark of Oracle and/or its affiliates in the US and other countries. Copyright © 1993, 2021, Oracle and/or its affiliates, 500 Oracle Parkway, Redwood Shores, CA 94065 USA. All rights reserved. Use is subject to license terms and the documentation redistribution policy .