is new.
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.Box.Filler
public static class Box.Filler
An implementation of a lightweight component that participates in layout but has no view.
Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans TM has been added to the java.beans package. Please see XMLEncoder .
| Nested Class Summary | |
|---|---|
| protected class |
Box.Filler.AccessibleBoxFiller
This class implements accessibility support for the Box.Filler class. |
| Nested classes/interfaces inherited from class javax.swing. JComponent |
|---|
| JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt. Container |
|---|
| Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt. Component |
|---|
Component.AccessibleAWTComponent
,
Component.BaselineResizeBehavior
,
Component.BltBufferStrategy
,
Component.FlipBufferStrategy
|
| Field Summary | |
|---|---|
|
|
| Fields inherited from class javax.swing. JComponent |
|---|
accessibleContext
,
listenerList
,
TOOL_TIP_TEXT_KEY
,
ui
,
UNDEFINED_CONDITION
,
WHEN_ANCESTOR_OF_FOCUSED_COMPONENT
,
WHEN_FOCUSED
,
WHEN_IN_FOCUSED_WINDOW
|
| Fields inherited from class java.awt. Component |
|---|
| BOTTOM_ALIGNMENT , CENTER_ALIGNMENT , LEFT_ALIGNMENT , RIGHT_ALIGNMENT , TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image. ImageObserver |
|---|
| ABORT , ALLBITS , ERROR , FRAMEBITS , HEIGHT , PROPERTIES , SOMEBITS , WIDTH |
| Constructor Summary | |
|---|---|
|
Box.Filler
(
Dimension
min,
Dimension
pref,
Dimension
max) Constructor to create shape with the given size ranges. |
|
| Method Summary | |
|---|---|
| void |
changeShape
(
Dimension
min,
Dimension
pref,
Dimension
max) Change the size requests for this shape. |
| AccessibleContext |
getAccessibleContext
() Gets the AccessibleContext associated with this Box.Filler. |
protected void
|
paintComponent
(
Graphics
Paints this Filler.
|
|
|
|
|
|
|
| Methods inherited from class java.lang. Object |
|---|
| clone , equals , finalize , getClass , hashCode , notify , notifyAll , wait , wait , wait |
|
|---|
protectedAccessibleContextaccessibleContext
| Constructor Detail |
|---|
public Box.Filler(Dimension min,
Dimension pref,
Dimension max)
| Method Detail |
|---|
public void changeShape(Dimension min,
Dimension pref,
Dimension max)
paintComponent
protected void
publicDimensionpaintComponent
getMinimumSize(
Graphics
g)
()
Paints this Filler. If this Filler has a UI this method invokes super's implementation, otherwise if this Filler is opaque the Graphics is filled using the background.
paintComponent
Parameters:
g - the Graphics to paint to
Throws:
NullPointerException
- if g is null
Since:
1.6
JComponent.paint(java.awt.Graphics)
publicDimensiongetPreferredSize()
publicDimensiongetMaximumSize()
public AccessibleContext getAccessibleContext()