javax.swing.JTree.setBounds()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(5.1k)|赞(0)|评价(0)|浏览(139)

本文整理了Java中javax.swing.JTree.setBounds()方法的一些代码示例,展示了JTree.setBounds()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JTree.setBounds()方法的具体详情如下:
包路径:javax.swing.JTree
类名称:JTree
方法名:setBounds

JTree.setBounds介绍

暂无

代码示例

代码示例来源:origin: checkstyle/checkstyle

/**
 * This is overridden to set the height to match that of the JTable.
 */
@Override
public void setBounds(int x, int y, int w, int h) {
  super.setBounds(x, 0, w, treeTable.getHeight());
}

代码示例来源:origin: com.github.houbie/rhino-mod

/**
 * This is overridden to set the height to match that of the JTable.
 */
@Override
public void setBounds(int x, int y, int w, int h) {
  super.setBounds(x, 0, w, JTreeTable.this.getHeight());
}

代码示例来源:origin: com.github.tntim96/rhino

/**
 * This is overridden to set the height to match that of the JTable.
 */
@Override
public void setBounds(int x, int y, int w, int h) {
  super.setBounds(x, 0, w, JTreeTable.this.getHeight());
}

代码示例来源:origin: Audiveris/audiveris

/**
 * This is overridden to set the height to match that of the JTable.
 */
@Override
public void setBounds (int x,
            int y,
            int w,
            int h)
{
  super.setBounds(x, 0, w, JTreeTable.this.getHeight());
}

代码示例来源:origin: org.cytoscape/swing-util-api

/**
 * This is overridden to set the height to match that of the JTable.
 */
public void setBounds(int x, int y, int w, int h) {
  super.setBounds(x, 0, w, JTreeTable.this.getHeight());
}

代码示例来源:origin: cytoscape/application

/**
 * This is overridden to set the height to match that of the JTable.
 */
public void setBounds(int x, int y, int w, int h) {
  super.setBounds(x, 0, w, JTreeTable.this.getHeight());
}

代码示例来源:origin: org.activecomponents.jadex/jadex-commons-gui

/**
 * This is overridden to set the height to match that of the JTable.
 */
public void setBounds(int x, int y, int w, int h) {
  super.setBounds(x, 0, w, JTreeTable.this.getHeight());
}

代码示例来源:origin: com.puppycrawl.tools/checkstyle

/**
 * This is overridden to set the height to match that of the JTable.
 */
@Override
public void setBounds(int x, int y, int w, int h) {
  super.setBounds(x, 0, w, treeTable.getHeight());
}

代码示例来源:origin: uk.org.mygrid.taverna/taverna-core

/**
 * This is overridden to set the height to match that of the JTable.
 */
public void setBounds(int x, int y, int w, int h) {
  super.setBounds(x, 0, w, JTreeTable.this.getHeight());
}

代码示例来源:origin: org.jvnet.hudson/embedded-rhino-debugger

/**
 * This is overridden to set the height to match that of the JTable.
 */
public void setBounds(int x, int y, int w, int h) {
  super.setBounds(x, 0, w, JTreeTable.this.getHeight());
}

代码示例来源:origin: ro.isdc.wro4j/rhino

/**
 * This is overridden to set the height to match that of the JTable.
 */
@Override
public void setBounds(int x, int y, int w, int h) {
  super.setBounds(x, 0, w, JTreeTable.this.getHeight());
}

代码示例来源:origin: org.jvnet.hudson/embedded-rhino-debugger

/**
 * This is overridden to set the height to match that of the JTable.
 */
@Override
public void setBounds(int x, int y, int w, int h) {
  super.setBounds(x, 0, w, JTreeTable.this.getHeight());
}

代码示例来源:origin: ricardojlrufino/eclipse-cdt-standalone-astparser

public void setBounds(int x, int y, int w, int h) {
  super.setBounds(x, 0, w, JTreeTable.this.getHeight());
}

代码示例来源:origin: org.netbeans.modules/org-netbeans-lib-profiler-ui

public void setBounds(int x, int y, int w, int h) {
  super.setBounds(x, 0, w, JTreeTable.this.getHeight());
}

代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/openide

/**
 * Overridden to always set the size to the height of the TreeTable
   * and the width of column 0.  The paint() method will translate the
   * coordinates to the correct position. */
public void setBounds(int x, int y, int w, int h) {
    transY = -y;
    super.setBounds(0,0, 
      TreeTable.this.getColumnModel().getColumn(0).getWidth(), 
      TreeTable.this.getHeight()); 
}

代码示例来源:origin: net.sf.squirrel-sql.thirdpary-non-maven/openide

/**
 * Overridden to always set the size to the height of the TreeTable
   * and the width of column 0.  The paint() method will translate the
   * coordinates to the correct position. */
public void setBounds(int x, int y, int w, int h) {
    transY = -y;
    super.setBounds(0,0, 
      TreeTable.this.getColumnModel().getColumn(0).getWidth(), 
      TreeTable.this.getHeight()); 
}

代码示例来源:origin: de.sciss/jtreetable

protected void layoutTree() {
  int hier = treeTable.getHierarchicalColumn();
  if (hier < 0) {
    tree.setBounds(0, 0, 0, 0);
  } else {
    Rectangle r = table.getCellRect(-1, hier, true);
    int cm = treeTable.getColumnModel().getColumnMargin();
    r.x += cm/2;
    r.width -= cm;
    r.height = treeTable.getHeight();
    tree.setBounds(r);
  }
}

代码示例来源:origin: org.apache.directory.server/apacheds-xdbm-tools

jPanel1.add( jTextArea1, java.awt.BorderLayout.CENTER );
jScrollPane1.getViewport().add( jTree1 );
jTree1.setBounds( new java.awt.Rectangle( 238, 142, 82, 80 ) );
jTextArea1.setText( "" );
jTextArea1.setEditable( false );

代码示例来源:origin: org.apache.directory/com.springsource.org.apache.directory.server.core

jPanel1.add( jTextArea1, java.awt.BorderLayout.CENTER );
jScrollPane1.getViewport().add( jTree1 );
jTree1.setBounds( new java.awt.Rectangle( 238, 142, 82, 80 ) );
jTextArea1.setText( "" );
jTextArea1.setEditable( false );

代码示例来源:origin: org.netbeans.api/org-openide-explorer

/**
 * Overridden to always set the size to the height of the TreeTable
 * and the width of column 0.  The paint() method will translate the
 * coordinates to the correct position. 
 * Fire width property change so that we can revalidate horizontal scrollbar in TreeTableView.
 */
@Override
public void setBounds(int x, int y, int w, int h) {
  transY = -y;
  int oldW = getWidth();
  super.setBounds(0, 0, TreeTable.this.getColumnModel().getColumn(0).getWidth(), TreeTable.this.getHeight());
  if (oldW != w) {
    firePropertyChange("width", oldW, w);
  }
}

相关文章

JTree类方法