public void setRowHeight(int rowHeight) {
   if (rowHeight > 0) {
     super.setRowHeight(rowHeight);
     if (myTreeTable != null && myTreeTable.getRowHeight() != rowHeight) {
       myTreeTable.setRowHeight(getRowHeight());
     }
   }
 }
 public void paint(Graphics g) {
   putClientProperty("JTree.lineStyle", "None");
   Graphics g1 = g.create();
   g1.translate(0, -myVisibleRow * getRowHeight());
   super.paint(g1);
   g1.dispose();
   if (myBorder != null) {
     myBorder.paintBorder(this, g, 0, 0, myTreeTable.getWidth(), getRowHeight());
   }
 }
예제 #3
0
 public void setTableModel(TreeTableModel treeTableModel) {
   super.setTableModel(treeTableModel);
   LOG.assertTrue(treeTableModel instanceof SortableColumnModel);
 }
 public void setBounds(int x, int y, int w, int h) {
   super.setBounds(x, 0, w, myTreeTable.getHeight());
 }