Class JTreeTable.TreeTableCellRenderer

    • Constructor Detail

      • TreeTableCellRenderer

        public TreeTableCellRenderer​(TreeModel model)
    • Method Detail

      • updateUI

        public void updateUI()
        updateUI is overridden to set the colors of the Tree's renderer to match that of the table.
        Overrides:
        updateUI in class JTree
      • setRowHeight

        public void setRowHeight​(int rowHeight)
        Sets the row height of the tree, and forwards the row height to the table.
        Overrides:
        setRowHeight in class JTree
      • setBounds

        public void setBounds​(int x,
                              int y,
                              int w,
                              int h)
        This is overridden to set the height to match that of the JTable.
        Overrides:
        setBounds in class Component
      • paint

        public void paint​(Graphics g)
        Sublcassed to translate the graphics such that the last visible row will be drawn at 0,0.
        Overrides:
        paint in class JComponent