本文整理了Java中javax.swing.JTree.setMinimumSize()
方法的一些代码示例,展示了JTree.setMinimumSize()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JTree.setMinimumSize()
方法的具体详情如下:
包路径:javax.swing.JTree
类名称:JTree
方法名:setMinimumSize
暂无
代码示例来源:origin: pl.touk/test-generator
private void createTree()
{
DefaultMutableTreeNode top = new DefaultMutableTreeNode("TestGenerator");
createNodes(top);
tree = new JTree(top);
tree.setCellRenderer(new AssertionTreeCellRenderer());
tree.getSelectionModel().setSelectionMode(TreeSelectionModel.SINGLE_TREE_SELECTION);
tree.addTreeSelectionListener(new TreeChangeListener());
// tree.setSize(new Dimension(300, 400));
int height = (result.getTestCases().size())*(result.getTestCases().get(0).getTestSteps().size()*30);
tree.setPreferredSize(new Dimension(200, height));
tree.setMinimumSize(new Dimension(150, 500));
tree.setMaximumSize(new Dimension(800, Integer.MAX_VALUE));
treeView = new JScrollPane(tree);
treeView.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
treeView.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
}
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-visualweb-propertyeditors
resourceTree.setMinimumSize(new java.awt.Dimension(120, 80));
resourceTree.setRootVisible(false);
resourceTree.setShowsRootHandles(true);
代码示例来源:origin: openmuc/openiec61850
tree.setMinimumSize(new Dimension(100, 0));
tree.addTreeSelectionListener(this);
JScrollPane treeScrollPane = new JScrollPane(tree);
代码示例来源:origin: org.openmuc/openiec61850
tree.setMinimumSize(new Dimension(100, 0));
tree.addTreeSelectionListener(this);
JScrollPane treeScrollPane = new JScrollPane(tree);
代码示例来源:origin: org.apache.uima/uimaj-tools
this.selectedAnnotationTree.setMinimumSize(new Dimension(50, 100));
this.selectedAnnotationTree.setScrollsOnExpand(true);
this.selectedAnnotationTree.setRootVisible(true);
代码示例来源:origin: edu.utah.bmi.nlp/nlp-core
this.selectedAnnotationTree.setMinimumSize(new Dimension(50, 100));
this.selectedAnnotationTree.setScrollsOnExpand(true);
this.selectedAnnotationTree.setRootVisible(true);
代码示例来源:origin: org.jacorb/jacorb
treeView.setMinimumSize(new Dimension(100,100));
treeView.addTreeSelectionListener(this);
代码示例来源:origin: ikkisoft/blazer
jTree4.setMinimumSize(new java.awt.Dimension(90, 20));
jScrollPane4.setViewportView(jTree4);
内容来源于网络,如有侵权,请联系作者删除!