adalogo.gui.varmonitor

Class 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.

Version:
1.2 10/27/98

Authors:
Philip Milne
Scott Violet

Field Summary

protected JTreeTable.TreeTableCellRenderer
tree
A subclass of JTree.

Constructor Summary

JTreeTable(TreeTableModel treeTableModel)

Method Summary

int
getEditingRow()
JTree
getTree()
Returns the tree that is being shared between the model.
void
setRowHeight(int rowHeight)
Overridden to pass the new rowHeight to the tree.
void
updateUI()
Overridden to message super and forward the method to the tree.

Field Details

tree

protected JTreeTable.TreeTableCellRenderer tree
A subclass of JTree.

Constructor Details

JTreeTable

public JTreeTable(TreeTableModel treeTableModel)

Method Details

getEditingRow

public int getEditingRow()


getTree

public JTree getTree()
Returns the tree that is being shared between the model.


setRowHeight

public void setRowHeight(int rowHeight)
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 hieachy it will never receive this unless we forward it in this manner.