1. Same JTree instance across 2 tabs coderanch.comI made a single TreeModel, made two JTrees from it and added one to each of two tabs in a JTabbedPane. The JTrees both seem to update automatically from the TreeModel after add/remove events on the other JTree. Here's the test code I made up to explore this: import java.awt.*; import java.awt.event.*; import javax.swing.*; import javax.swing.event.*; import javax.swing.tree.*; public class TreeTest ... |
2. JTree and Tabbed Pane java-forums.org |
3. ScrollBar not coming in Netbeans tabbed pane for JTree forums.oracle.com |