Setting the Row Height of a JTree
import javax.swing.JFrame; import javax.swing.JScrollPane; import javax.swing.JTree; public class TreeRowHeight { public static void main(String[] argv) { JTree tree = new JTree(); tree.setRowHeight(15); JFrame frame = new JFrame("tree row height"); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.add(new JScrollPane(tree)); frame.setSize(380, 320); frame.setLocationRelativeTo(null); frame.setVisible(true); } }