本文整理了Java中javax.swing.JTree.setRowHeight()
方法的一些代码示例,展示了JTree.setRowHeight()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JTree.setRowHeight()
方法的具体详情如下:
包路径:javax.swing.JTree
类名称:JTree
方法名:setRowHeight
暂无
代码示例来源:origin: skylot/jadx
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();
}
代码示例来源:origin: checkstyle/checkstyle
/**
* 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());
}
}
}
代码示例来源:origin: org.netbeans.api/org-openide-explorer
/**
* 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);
}
}
代码示例来源:origin: net.sf.squirrel-sql.thirdpary-non-maven/openide
/**
* 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);
}
}
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/openide
/**
* 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);
}
}
代码示例来源:origin: openmicroscopy/bioformats
/** 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;
}
代码示例来源:origin: ome/formats-bsd
/** 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;
}
代码示例来源:origin: io.ultreia.java4all.jaxx/jaxx-widgets-config
protected void createDetectedCallBack() {
$objectMap.put("detectedCallBack", detectedCallBack = new JTree());
detectedCallBack.setName("detectedCallBack");
detectedCallBack.setEditable(false);
detectedCallBack.setRootVisible(false);
detectedCallBack.setRowHeight(24);
}
代码示例来源:origin: org.nuiton.jaxx/jaxx-widgets-config
protected void createDetectedCallBack() {
$objectMap.put("detectedCallBack", detectedCallBack = new JTree());
detectedCallBack.setName("detectedCallBack");
detectedCallBack.setEditable(false);
detectedCallBack.setRootVisible(false);
detectedCallBack.setRowHeight(24);
}
代码示例来源:origin: org.nuiton.jaxx/jaxx-config
protected void createDetectedCallBack() {
$objectMap.put("detectedCallBack", detectedCallBack = new JTree());
detectedCallBack.setName("detectedCallBack");
detectedCallBack.setEditable(false);
detectedCallBack.setRootVisible(false);
detectedCallBack.setRowHeight(24);
}
代码示例来源:origin: org.junit/com.springsource.junit
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);
}
代码示例来源:origin: fr.ifremer/isis-fish
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"));
}
代码示例来源:origin: org.netbeans.modules/org-netbeans-lib-profiler-ui
public void setRowHeight(int rowHeight) {
if (rowHeight > 0) {
super.setRowHeight(rowHeight);
if ((JTreeTable.this != null) && (JTreeTable.this.getRowHeight() != rowHeight)) {
JTreeTable.this.setRowHeight(getRowHeight());
}
}
}
代码示例来源:origin: org.cytoscape/swing-util-api
/**
* 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());
}
}
}
代码示例来源:origin: cytoscape/application
/**
* 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());
}
}
}
代码示例来源:origin: org.activecomponents.jadex/jadex-commons-gui
/**
* 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());
}
}
}
代码示例来源:origin: uk.org.mygrid.taverna/taverna-core
/**
* 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());
}
}
}
代码示例来源:origin: org.jvnet.hudson/embedded-rhino-debugger
/**
* 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());
}
}
}
代码示例来源:origin: Audiveris/audiveris
/**
* 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());
}
}
}
代码示例来源:origin: org.gosu-lang.gosu/gosu-lab
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 );
}
内容来源于网络,如有侵权,请联系作者删除!