com.explodingpixels.widgets
Class TableUtils
java.lang.Object
com.explodingpixels.widgets.TableUtils
public class TableUtils
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
makeStriped
public static void makeStriped(JTable table,
Color stipeColor)
- Add's striping to the background of the given
JTable. The actual striping is
installed on the containing JScrollPane's JViewport, so if this table is not
added to a JScrollPane, then no stripes will be painted. This method can be called
before the given table is added to a scroll pane, though, as a PropertyChangeListener
will be installed to handle "ancestor" changes.
- Parameters:
table - the table to paint row stripes for.stipeColor - the color of the stripes to paint.
makeSortable
public static void makeSortable(JTable table,
TableUtils.SortDelegate sortDelegate)