本文整理了Java中javax.swing.JTree.setScrollsOnExpand()
方法的一些代码示例,展示了JTree.setScrollsOnExpand()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JTree.setScrollsOnExpand()
方法的具体详情如下:
包路径:javax.swing.JTree
类名称:JTree
方法名:setScrollsOnExpand
暂无
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-gsf-testrunner-ui
/**
*/
public void run() {
tree.setScrollsOnExpand(true);
}
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-gsf
public void setScrollOnExpand( boolean scroll ) {
this.tree.setScrollsOnExpand( scroll );
}
}
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-cnd-modelutil
public void setScrollsOnExpand(boolean scrolls) {
tree.setScrollsOnExpand(scrolls);
}
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-java-hints-analyzer
public void setScrollsOnExpand( boolean scrolls ) {
tree.setScrollsOnExpand( scrolls );
}
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-gsf-testrunner-ui
/**
*/
void expandReportNode(TestsuiteNode node) {
final boolean wasScrollsOnExpand = tree.getScrollsOnExpand();
tree.setScrollsOnExpand(false);
try {
expandNode(node);
} finally {
if (wasScrollsOnExpand) {
/*
* We must post the scrolling-enabling routine to the end of the
* event queue, after all the requests for expansion of nodes:
*/
EventQueue.invokeLater(this);
}
}
}
代码示例来源:origin: edu.stanford.protege/jtreetable
tree.setScrollsOnExpand(true);
treeScrollPane = new JScrollPane(tree);
代码示例来源:origin: org.qi4j.tool/org.qi4j.tool.envisage
structureTree.setShowsRootHandles( true );
structureTree.setExpandsSelectedPaths( true );
structureTree.setScrollsOnExpand( true );
structureTree.setName( STRUCTURE_VIEW );
structureTree.setCellRenderer( new TreeModelCellRenderer() );
typeTree.setShowsRootHandles( true );
typeTree.setExpandsSelectedPaths( true );
typeTree.setScrollsOnExpand( true );
typeTree.setName( TYPE_VIEW );
typeTree.setCellRenderer( new TreeModelCellRenderer() );
代码示例来源:origin: edu.utah.bmi.nlp/nlp-core
this.selectedAnnotationTree.setScrollsOnExpand(true);
this.selectedAnnotationTree.setRootVisible(true);
this.selectedAnnotationTree.setCellRenderer(new AnnotationTreeCellRenderer());
代码示例来源:origin: org.apache.uima/uimaj-tools
this.selectedAnnotationTree.setScrollsOnExpand(true);
this.selectedAnnotationTree.setRootVisible(true);
this.selectedAnnotationTree.setCellRenderer(new AnnotationTreeCellRenderer());
代码示例来源:origin: org.icepdf.os/icepdf-viewer
tree.setExpandsSelectedPaths(true);
tree.setShowsRootHandles(true);
tree.setScrollsOnExpand(true);
tree.getSelectionModel().setSelectionMode(
TreeSelectionModel.SINGLE_TREE_SELECTION);
代码示例来源:origin: org.icepdf.os/icepdf-viewer
tree.setRootVisible(true);
tree.setShowsRootHandles(true);
tree.setScrollsOnExpand(true);
代码示例来源:origin: org.icepdf.os/icepdf-viewer
signatureTree.setExpandsSelectedPaths(true);
signatureTree.setShowsRootHandles(true);
signatureTree.setScrollsOnExpand(true);
nodeSelectionListener = new NodeSelectionListener(signatureTree);
signatureTree.addMouseListener(nodeSelectionListener);
代码示例来源:origin: org.apache.directory/com.springsource.org.apache.directory.server.core
tree.setShowsRootHandles( true );
tree.setToolTipText( "DB DIT" );
tree.setScrollsOnExpand( true );
tree.getSelectionModel().addTreeSelectionListener( new TreeSelectionListener()
代码示例来源:origin: org.icepdf.os/icepdf-viewer
tree.setExpandsSelectedPaths(true);
tree.setShowsRootHandles(true);
tree.setScrollsOnExpand(true);
tree.getSelectionModel().setSelectionMode(
TreeSelectionModel.SINGLE_TREE_SELECTION);
代码示例来源:origin: org.apache.directory.server/apacheds-xdbm-tools
tree.setShowsRootHandles( true );
tree.setToolTipText( "DB DIT" );
tree.setScrollsOnExpand( true );
tree.getSelectionModel().addTreeSelectionListener( new TreeSelectionListener()
代码示例来源:origin: notzippy/JALOPY2-MAIN
_tree = new JTree(_rootNode);
_tree.putClientProperty("JTree.lineStyle" /* NOI18N */, "Angled" /* NOI18N */);
_tree.setScrollsOnExpand(true);
_tree.setLargeModel(true);
代码示例来源:origin: org.icepdf.os/icepdf-viewer
commentTree.setExpandsSelectedPaths(true);
commentTree.setShowsRootHandles(true);
commentTree.setScrollsOnExpand(true);
commentTree.setRootVisible(false);
commentTree.getSelectionModel().setSelectionMode(
代码示例来源:origin: net.sf.taverna.t2.ui-components/workflow-explorer
tree.setExpandsSelectedPaths(true);
tree.setDragEnabled(false);
tree.setScrollsOnExpand(false);
tree.setCellRenderer(new WorkflowExplorerTreeCellRenderer(workflow));
代码示例来源:origin: org.xworker/xworker_core
comp.setScrollsOnExpand(scrollsOnExpand);
内容来源于网络,如有侵权,请联系作者删除!