JIDE 3.5.15

com.jidesoft.grid
Class TableHeaderFiller

java.lang.Object
  extended by com.jidesoft.grid.TableHeaderFiller
All Implemented Interfaces:
ComponentListener, PropertyChangeListener, EventListener

public class TableHeaderFiller
extends Object
implements ComponentListener, PropertyChangeListener

The original source code is from http://l2fprod.com/blog/2008/08/30/the-fun-of-swing-jtable-column-resizing/. To use it, just call new TableHeaderFiller(table), make sure the table resize mode is AUTO_RESIZE_OFF and make sure the table has already been added to its JScrollPane.


Constructor Summary
TableHeaderFiller(JTable table)
           
 
Method Summary
 void componentHidden(ComponentEvent e)
           
 void componentMoved(ComponentEvent e)
           
 void componentResized(ComponentEvent e)
           
 void componentShown(ComponentEvent e)
           
 void propertyChange(PropertyChangeEvent evt)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TableHeaderFiller

public TableHeaderFiller(JTable table)
Method Detail

propertyChange

public void propertyChange(PropertyChangeEvent evt)
Specified by:
propertyChange in interface PropertyChangeListener

componentHidden

public void componentHidden(ComponentEvent e)
Specified by:
componentHidden in interface ComponentListener

componentMoved

public void componentMoved(ComponentEvent e)
Specified by:
componentMoved in interface ComponentListener

componentResized

public void componentResized(ComponentEvent e)
Specified by:
componentResized in interface ComponentListener

componentShown

public void componentShown(ComponentEvent e)
Specified by:
componentShown in interface ComponentListener

JIDE 3.5.15