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

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

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

JScrollPane.setColumnHeader介绍

暂无

代码示例

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

scroll.setColumnHeader(new JViewport() {
 @Override public Dimension getPreferredSize() {
  Dimension d = super.getPreferredSize();

代码示例来源:origin: org.codehaus.izpack/izpack-panel

tableScroller.setColumnHeader(null);

代码示例来源:origin: org.codehaus.izpack/izpack-panel

/**
 * The Implementation of this method should create the layout for the current class.
 */
private void createNormalLayout()
{
  setLayout(new BoxLayout(this, BoxLayout.Y_AXIS));
  createLabel("PacksPanel.info", "preferences", null, null);
  add(Box.createRigidArea(new Dimension(0, 3)));
  createLabel("PacksPanel.tip", "tip", null, null);
  add(Box.createRigidArea(new Dimension(0, 5)));
  tableScroller = new JScrollPane();
  tableScroller.setColumnHeaderView(null);
  tableScroller.setColumnHeader(null);
  packsTree = createPacksTree(300, tableScroller, null, null);
  if (packsModel.dependenciesExist())
  {
    dependencyArea = createTextArea("PacksPanel.dependencyList", null, null, null);
  }
  descriptionArea = createTextArea("PacksPanel.description", null, null, null);
  requiredSpaceLabel = createPanelWithLabel("PacksPanel.space", null, null);
  if (IoHelper.supported("getFreeSpace"))
  {
    add(Box.createRigidArea(new Dimension(0, 3)));
    freeSpaceLabel = createPanelWithLabel("PacksPanel.freespace", null, null);
  }
}

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

table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
JScrollPane scrollTable = new JScrollPane(table);
scrollTable.setColumnHeader(null);
scrollTable.setMinimumSize(new Dimension(100, 80));
Box tableBox = new Box(BoxLayout.Y_AXIS);

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

public static void createColumnHeader(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.setColumnHeader(obj);
  }
}

代码示例来源:origin: org.owasp.jbrofuzz/jbrofuzz

providersTableScrollPane.setColumnHeader(null);
providersTableScrollPane.setVerticalScrollBarPolicy(20);
providersTableScrollPane.setHorizontalScrollBarPolicy(30);

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

jv1.setView(new JLabel("COL LABEL"));
scrollPane.setColumnHeader(jv1);

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

/**
 * Overrides to make column header viewport synchronizing with the main viewport.
 *
 * @param columnHeader the column header
 */
@Override
public void setColumnHeader(JViewport columnHeader) {
  JViewport old = getColumnHeader();
  super.setColumnHeader(columnHeader);
  if (old != null) {
    JideSwingUtilities.unsynchronizeView(old, getViewport());
  }
  if (getColumnHeader() != null) {
    JideSwingUtilities.synchronizeView(getColumnHeader(), getViewport(), SwingConstants.HORIZONTAL);
  }
}

相关文章

JScrollPane类方法