|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.event.ComponentAdapter
MinimumFrameSizeComponent
public class MinimumFrameSizeComponent
A component adapter to ensure a component does not get resized below the specified dimensions.
Constructor Summary | |
---|---|
MinimumFrameSizeComponent(int minimumWidth,
int minimumHeight)
Constructs a MinimumFrameSizeComponent that restricts a
component to the minimumWidth and minimumHeight
in pixels. |
Method Summary | |
---|---|
void |
componentResized(java.awt.event.ComponentEvent e)
Called when a component is resized, and prevents the component from becoming smaller than minimumWidth and minimumHeight . |
Methods inherited from class java.awt.event.ComponentAdapter |
---|
componentHidden, componentMoved, componentShown |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MinimumFrameSizeComponent(int minimumWidth, int minimumHeight)
MinimumFrameSizeComponent
that restricts a
component to the minimumWidth
and minimumHeight
in pixels.
minimumWidth
- The minimum width in pixels.minimumHeight
- The minimum height in pixels.Method Detail |
---|
public void componentResized(java.awt.event.ComponentEvent e)
minimumWidth
and minimumHeight
.
componentResized
in interface java.awt.event.ComponentListener
componentResized
in class java.awt.event.ComponentAdapter
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |