com.puppycrawl.tools.checkstyle.gui
Class JTreeTable
JTable
com.puppycrawl.tools.checkstyle.gui.JTreeTable
public class JTreeTable
extends JTable
This example shows how to create a simple JTreeTable component,
by using a JTree as a renderer (and editor) for the cells in a
particular column in the JTable.
- Philip Milne
- Scott Violet
- Lars K?hne
protected com.puppycrawl.tools.checkstyle.gui.JTreeTable.TreeTableCellRenderer | tree - A subclass of JTree.
|
tree
protected com.puppycrawl.tools.checkstyle.gui.JTreeTable.TreeTableCellRenderer tree
A subclass of JTree.
getEditingRow
public int getEditingRow()
getTree
public JTree getTree()
- the tree that is being shared between the model.
setRowHeight
public void setRowHeight(int newRowHeight)
Overridden to pass the new rowHeight to the tree.
updateUI
public void updateUI()
Overridden to message super and forward the method to the tree.
Since the tree is not actually in the component hierarchy it will
never receive this unless we forward it in this manner.