public void loadSettings() { Font font = settings.getFont(); Font largerFont = font.deriveFont(font.getSize() + 2.f); setFont(largerFont); setEditorTheme(settings.getEditorThemePath()); tree.setFont(largerFont); tree.setRowHeight(-1); tabbedPane.loadSettings(); }
/** * Sets the row height of the tree, and forwards the row height to * the table. */ @Override public void setRowHeight(int newRowHeight) { if (newRowHeight > 0) { super.setRowHeight(newRowHeight); if (treeTable != null && treeTable.getRowHeight() != newRowHeight) { treeTable.setRowHeight(getRowHeight()); } } }
/** * Sets the row height of the tree, and forwards the row height to * the table. */ @Override public void setRowHeight(int rowHeight) { if (rowHeight > 0) { super.setRowHeight(rowHeight); TreeTable.this.setRowHeight(rowHeight); } }
/** * Sets the row height of the tree, and forwards the row height to * the table. */ public void setRowHeight(int rowHeight) { if (rowHeight > 0) { super.setRowHeight(rowHeight); TreeTable.this.setRowHeight(rowHeight); } }
/** * Sets the row height of the tree, and forwards the row height to * the table. */ public void setRowHeight(int rowHeight) { if (rowHeight > 0) { super.setRowHeight(rowHeight); TreeTable.this.setRowHeight(rowHeight); } }
/** Constructs a Swing JTree that displays the given XML DOM document. */ public static JTree makeJTree(Document doc) { Element rootNode = doc.getDocumentElement(); DefaultMutableTreeNode rootTreeNode = makeTreeNode(rootNode); JTree tree = new JTree(rootTreeNode); tree.setCellRenderer(new XMLCellRenderer()); tree.setRowHeight(0); return tree; }
/** Constructs a Swing JTree that displays the given XML DOM document. */ public static JTree makeJTree(Document doc) { Element rootNode = doc.getDocumentElement(); DefaultMutableTreeNode rootTreeNode = makeTreeNode(rootNode); JTree tree = new JTree(rootTreeNode); tree.setCellRenderer(new XMLCellRenderer()); tree.setRowHeight(0); return tree; }
protected void createDetectedCallBack() { $objectMap.put("detectedCallBack", detectedCallBack = new JTree()); detectedCallBack.setName("detectedCallBack"); detectedCallBack.setEditable(false); detectedCallBack.setRootVisible(false); detectedCallBack.setRowHeight(24); }
protected void createDetectedCallBack() { $objectMap.put("detectedCallBack", detectedCallBack = new JTree()); detectedCallBack.setName("detectedCallBack"); detectedCallBack.setEditable(false); detectedCallBack.setRootVisible(false); detectedCallBack.setRowHeight(24); }
protected void createDetectedCallBack() { $objectMap.put("detectedCallBack", detectedCallBack = new JTree()); detectedCallBack.setName("detectedCallBack"); detectedCallBack.setEditable(false); detectedCallBack.setRootVisible(false); detectedCallBack.setRowHeight(24); }
public TestSuitePanel() { super(new BorderLayout()); setPreferredSize(new Dimension(300, 100)); fTree= new JTree(); fTree.setModel(null); fTree.setRowHeight(20); ToolTipManager.sharedInstance().registerComponent(fTree); fTree.putClientProperty("JTree.lineStyle", "Angled"); fScrollTree= new JScrollPane(fTree); add(fScrollTree, BorderLayout.CENTER); }
protected void createFisheryRegionTree() { $objectMap.put("fisheryRegionTree", fisheryRegionTree = new JTree()); fisheryRegionTree.setName("fisheryRegionTree"); fisheryRegionTree.setRootVisible(true); fisheryRegionTree.setRowHeight(0); fisheryRegionTree.setSelectionRow(0); fisheryRegionTree.addTreeSelectionListener(JAXXUtil.getEventListener(TreeSelectionListener.class, "valueChanged", this, "doValueChanged__on__fisheryRegionTree")); }
public void setRowHeight(int rowHeight) { if (rowHeight > 0) { super.setRowHeight(rowHeight); if ((JTreeTable.this != null) && (JTreeTable.this.getRowHeight() != rowHeight)) { JTreeTable.this.setRowHeight(getRowHeight()); } } }
/** * Sets the row height of the tree, and forwards the row height to the * table. */ public void setRowHeight(int rowHeight) { if (rowHeight > 0) { super.setRowHeight(rowHeight); if ((JTreeTable.this != null) && (JTreeTable.this.getRowHeight() != rowHeight)) { JTreeTable.this.setRowHeight(getRowHeight()); } } }
/** * Sets the row height of the tree, and forwards the row height to the * table. */ public void setRowHeight(int rowHeight) { if (rowHeight > 0) { super.setRowHeight(rowHeight); if ((JTreeTable.this != null) && (JTreeTable.this.getRowHeight() != rowHeight)) { JTreeTable.this.setRowHeight(getRowHeight()); } } }
/** * Sets the row height of the tree, and forwards the row height to * the table. */ public void setRowHeight(int rowHeight) { if (rowHeight > 0) { super.setRowHeight(rowHeight); if (JTreeTable.this != null && JTreeTable.this.getRowHeight() != rowHeight) { JTreeTable.this.setRowHeight(getRowHeight()); } } }
/** * Sets the row height of the tree, and forwards the row height to * the table. */ public void setRowHeight(int rowHeight) { if (rowHeight > 0) { super.setRowHeight(rowHeight); if (JTreeTable.this != null && JTreeTable.this.getRowHeight() != rowHeight) { JTreeTable.this.setRowHeight(getRowHeight()); } } }
/** * Sets the row height of the tree, and forwards the row height to * the table. */ public void setRowHeight(int rowHeight) { if (rowHeight > 0) { super.setRowHeight(rowHeight); if (JTreeTable.this != null && JTreeTable.this.getRowHeight() != rowHeight) { JTreeTable.this.setRowHeight(getRowHeight()); } } }
/** * Sets the row height of the tree, and forwards the row height to the * table. */ @Override public void setRowHeight (int rowHeight) { if (rowHeight > 0) { super.setRowHeight(rowHeight); if ((JTreeTable.this != null) && (JTreeTable.this.getRowHeight() != rowHeight)) { JTreeTable.this.setRowHeight(getRowHeight()); } } }
private JScrollPane makeResultPane() { _varTree = new JTree( makeEmptyModel() ); _varTree.setBorder( null ); _varTree.setBackground( Scheme.active().getWindow() ); _varTree.setRootVisible( true ); _varTree.setShowsRootHandles( true ); _varTree.setRowHeight( 22 ); _varTree.getSelectionModel().setSelectionMode( TreeSelectionModel.SINGLE_TREE_SELECTION ); _varTree.setVisibleRowCount( 20 ); _varTree.setCellRenderer( new VarTreeCellRenderer( _varTree ) ); return new JScrollPane( _varTree ); }