javax.swing.JScrollPane.setRowHeader()方法的使用及代码示例

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

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

JScrollPane.setRowHeader介绍

暂无

代码示例

代码示例来源:origin: net.java.abeille/abeille

/**
 * * Creates row header for table with row number (starting with 1)
 * displayed
 */
public static void removeRowHeader(JTable table) {
  Container p = table.getParent();
  if (p instanceof JViewport) {
    Container gp = p.getParent();
    if (gp instanceof JScrollPane) {
      JScrollPane scrollPane = (JScrollPane) gp;
      scrollPane.setRowHeader(null);
    }
  }
}

代码示例来源:origin: org.xworker/xworker_core

public static void createRowHeader(ActionContext actionContext){
  JScrollPane parent = (JScrollPane) actionContext.get("parent");
  
  Thing thing = World.getInstance().getThing("xworker.javax.swing.JViewport");
  JViewport obj = (JViewport) thing.run("create", actionContext);
  if(obj != null){
    parent.setRowHeader(obj);
  }
}

代码示例来源:origin: stackoverflow.com

scrollPane.setRowHeader(jv2);

代码示例来源:origin: com.jidesoft/jide-oss

/**
 * Override setRowHeader method in JScrollPane and synchronize the view with the main viewport. Swing tried to
 * implement this feature but it will break if the view position changes starts from rowHeader.
 *
 * @param rowHeader the new row header
 */
@Override
public void setRowHeader(JViewport rowHeader) {
  JViewport old = getRowHeader();
  super.setRowHeader(rowHeader);
  if (old != null) {
    JideSwingUtilities.unsynchronizeView(old, getViewport());
    JideSwingUtilities.unsynchronizeView(getViewport(), old);
  }
  if (getRowHeader() != null) {
    JideSwingUtilities.synchronizeView(getRowHeader(), getViewport(), SwingConstants.VERTICAL);
    JideSwingUtilities.synchronizeView(getViewport(), getRowHeader(), SwingConstants.VERTICAL);
  }
}

代码示例来源:origin: net.sf.squirrel-sql/squirrel-sql

_metaDataSp.setRowHeader(null);

代码示例来源:origin: realXuJiang/bigtable-sql

_metaDataSp.setRowHeader(null);

相关文章

JScrollPane类方法