Size « JTree « Java Swing Q&A





1. Increase size of Text in Jtree    stackoverflow.com

I'm trying to increase the size of the text of nodes in my Jtree. Is there any way to do this with/without altering other swing components? Thanks!

2. JTree font size question    coderanch.com

Hello, I'm using jdk118 and swing 111. I've created a JTree I've also created new [+] and [-] signs that expand and collapse a branch node. I made new ones so they can be larger than standard. I've also created a graphic that replaces the windows system folder icon for nodes that contain children. Again no problem to create it and ...

3. Problems Sizing a JTree    coderanch.com

I need to display a JTree within a ScrollPane. Works fine. However.... I'm trying to specify how much space I want the JTree to take up when the tree is initially displayed, whether or not the nodes are expanded (500 X 500 for example). 2 approaches fail for different reasons: 1. setPreferredSize() works initally (I get a Tree of 500 X ...

4. JTree Sizing Question    coderanch.com

Hello: I've got a JTree in which each node contains a button. I've written my own cell renderer to render the button, and I realize I have to do some special stuff to get the mouse click on the button. My question involves the size of the displayed JTree. Over time in the program, the label on a cell's button may ...