Put JTable in the JTree
Get rid of the scrollPane, it’s dysfunctional anyway (so far I agree with Russell 🙂 and add the table and its header to the panel, using an appropriate LayoutManager: public MyTableInTreeCellRenderer() { super(); setLayout(new BoxLayout(this, BoxLayout.PAGE_AXIS)); table = new JTable(); add(table.getTableHeader()); add(table); } you’ll probably need to tweak the visuals a bit, the left and … Read more