com.jidesoft.grid
Class TableHeaderFiller
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TableHeaderFiller
public TableHeaderFiller(JTable table)
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