charvax.swing.table
Class TableHeader
The TableHeader class is used by the ScrollPane for drawing the
column headers of a table. It shares the TableModel of its companion
Table object.
BOTTOM_ALIGNMENT , CENTER_ALIGNMENT , LEFT_ALIGNMENT , RIGHT_ALIGNMENT , TOP_ALIGNMENT , _alignmentX , _alignmentY , _background , _cursesColor , _enabled , _focusListeners , _foreground , _keyListeners , _origin , _parent , _visible |
TableHeader(TableModel model_) - Constructs a table of numRows_ and numColumns_ of empty cells
using a DefaultTableModel.
|
addFocusListener , addKeyListener , contains , contains , debug , draw , getAlignmentX , getAlignmentY , getAncestorWindow , getBackground , getBounds , getCursesColor , getForeground , getHeight , getLocation , getLocationOnScreen , getName , getParent , getSize , getWidth , hasFocus , hide , invalidate , isDisplayed , isEnabled , isFocusTraversable , isTotallyObscured , isValid , isVisible , minimumSize , processEvent , processFocusEvent , processKeyEvent , processMouseEvent , repaint , requestFocus , requestSync , setBackground , setBounds , setBounds , setBounds , setEnabled , setForeground , setLocation , setLocation , setName , setParent , setVisible , show , validate , validateCursesColor |
TableHeader
public TableHeader(TableModel model_)
Constructs a table of numRows_ and numColumns_ of empty cells
using a DefaultTableModel.
getSize
public Dimension getSize()
We pretend that the table header is two rows in height so that the
box gets drawn correctly.
- getSize in interface Component