dirk_krause.wstools
Class DkSizeTracker

java.lang.Object
  extended by dirk_krause.wstools.DkSizeTracker

public class DkSizeTracker
extends java.lang.Object

Keep track of a component size. If the preferred or minimum size of a component increases we need to pack() the window again.


Field Summary
protected  int h
          The largest height we have ever found.
protected  int w
          The largest width we have ever found.
 
Constructor Summary
DkSizeTracker()
          Constructor.
 
Method Summary
 boolean mustPackAgain(javax.swing.JComponent c)
          Check whether or not the window/dialog must be packed again.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

w

protected int w
The largest width we have ever found.


h

protected int h
The largest height we have ever found.

Constructor Detail

DkSizeTracker

public DkSizeTracker()
Constructor.

Method Detail

mustPackAgain

public boolean mustPackAgain(javax.swing.JComponent c)
Check whether or not the window/dialog must be packed again.

Parameters:
c - The component to keep track.
Returns:
Flag to indicate whether or not we must invoke pack() again.