本文整理了Java中javax.swing.JScrollPane.setColumnHeaderView()
方法的一些代码示例,展示了JScrollPane.setColumnHeaderView()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JScrollPane.setColumnHeaderView()
方法的具体详情如下:
包路径:javax.swing.JScrollPane
类名称:JScrollPane
方法名:setColumnHeaderView
暂无
代码示例来源:origin: org.codehaus.groovy/groovy
private void jbInit(Reader reader) throws Exception {
final Border border = BorderFactory.createEmptyBorder();
jSplitPane1.setOrientation(JSplitPane.VERTICAL_SPLIT);
tokenPane.setEditable(false);
tokenPane.setText("");
scriptPane.setFont(new java.awt.Font("DialogInput", 0, 12));
scriptPane.setEditable(false);
scriptPane.setMargin(new Insets(5, 5, 5, 5));
scriptPane.setText("");
jScrollPane1.setBorder(border);
jScrollPane2.setBorder(border);
jSplitPane1.setMinimumSize(new Dimension(800, 600));
mainPanel.add(jSplitPane1, BorderLayout.CENTER);
if (reader == null) {
mainPanel.add(jbutton, BorderLayout.NORTH);
}
this.getContentPane().add(mainPanel);
jSplitPane1.add(jScrollPane1, JSplitPane.LEFT);
jScrollPane1.getViewport().add(tokenPane, null);
jSplitPane1.add(jScrollPane2, JSplitPane.RIGHT);
jScrollPane2.getViewport().add(scriptPane, null);
jScrollPane1.setColumnHeaderView(new JLabel(" Token Stream:"));
jScrollPane2.setColumnHeaderView(new JLabel(" Input Script:"));
jSplitPane1.setResizeWeight(0.5);
}
代码示例来源:origin: apache/geode
timeAxis.setPreferredHeight(drawingPane.getHeight());
scroller.setRowHeaderView(timeAxis);
scroller.setColumnHeaderView(sequenceDiagram.createMemberAxis());
int preferredWidth = (int) (Toolkit.getDefaultToolkit().getScreenSize().getWidth() - 100);
int preferredHeight = (int) (Toolkit.getDefaultToolkit().getScreenSize().getHeight() - 100);
代码示例来源:origin: stackoverflow.com
JScrollPane scroll = new JScrollPane(table);
scroll.setColumnHeaderView(table.getTableHeader());
table.setPreferredScrollableViewportSize(table.getPreferredSize());
代码示例来源:origin: com.synaptix/SynaptixSwing
/**
* Set whether the column header should be displayed
*/
public void setShowColumnHeader(boolean showHeader) {
showColumnHeader = showHeader;
if (showHeader) {
setColumnHeader(columnHeader);
} else {
scrollGrid.setColumnHeaderView(null);
}
}
代码示例来源:origin: org.nuiton.jaxx/jaxx-widgets-config
protected void $initialize_05_setProperties() {
if (log.isDebugEnabled()) {
log.debug(this);
}
// apply 3 property setters
$JScrollPane0.setColumnHeaderView(treeHeader);
go.setIcon(SwingUtil.getUIManagerActionIcon("config-quit"));
}
代码示例来源:origin: org.nuiton.jaxx/jaxx-config
@Override
public void processDataBinding() {
if (table != null) {
tablePane.setColumnHeaderView(table.getTableHeader());
}
}
代码示例来源:origin: com.synaptix/SynaptixSwing
/**
* Set whether the column header should be displayed
*/
public void setShowColumnHeader(boolean showHeader) {
showColumnHeader = showHeader;
if (showHeader) {
setColumnHeader(columnHeader);
} else {
scrollGrid.setColumnHeaderView(null);
}
}
代码示例来源:origin: io.ultreia.java4all.jaxx/jaxx-widgets-config
protected void $initialize_05_setProperties() {
if (log.isDebugEnabled()) {
log.debug(this);
}
// apply 3 property setters
$JScrollPane0.setColumnHeaderView(treeHeader);
go.setIcon(SwingUtil.getUIManagerActionIcon("config-quit"));
}
代码示例来源:origin: org.nuiton.jaxx/jaxx-widgets-config
@Override
public void processDataBinding() {
if (table != null) {
tablePane.setColumnHeaderView(table.getTableHeader());
}
}
代码示例来源:origin: io.ultreia.java4all.jaxx/jaxx-widgets-config
@Override
public void processDataBinding() {
if (table != null) {
tablePane.setColumnHeaderView(table.getTableHeader());
}
}
代码示例来源:origin: stackoverflow.com
JTable t = new JTable(3,3);
JScrollPane jScrollPane = new JScrollPane(t);
t.setTableHeader(null);
jScrollPane.setColumnHeaderView(null);
代码示例来源:origin: com.synaptix/SynaptixSwing
protected void unconfigureEnclosingScrollPane() {
Container p = getParent();
if (p instanceof JViewport) {
Container gp = p.getParent();
if (gp instanceof JScrollPane) {
JScrollPane scrollPane = (JScrollPane) gp;
scrollPane.setColumnHeaderView(null);
scrollPane.setRowHeaderView(null);
}
}
}
代码示例来源:origin: net.sf.squirrel-sql.thirdpary-non-maven/openide
/** Overridden - JTable's implementation of the method will
* actually attach (and leave behind) a gratuitous border
* on the enclosing scroll pane. */
protected final void configureEnclosingScrollPane() {
Container p = getParent();
if (p instanceof JViewport) {
Container gp = p.getParent();
if (gp instanceof JScrollPane) {
JScrollPane scrollPane = (JScrollPane)gp;
JViewport viewport = scrollPane.getViewport();
if (viewport == null || viewport.getView() != this) {
return;
}
scrollPane.setColumnHeaderView(getTableHeader());
}
}
}
代码示例来源:origin: org.netbeans.api/org-openide-explorer
/** Overridden - JTable's implementation of the method will
* actually attach (and leave behind) a gratuitous border
* on the enclosing scroll pane. */
protected final void configureEnclosingScrollPane() {
Container p = getParent();
if (p instanceof JViewport) {
Container gp = p.getParent();
if (gp instanceof JScrollPane) {
JScrollPane scrollPane = (JScrollPane) gp;
JViewport viewport = scrollPane.getViewport();
if ((viewport == null) || (viewport.getView() != this)) {
return;
}
scrollPane.setColumnHeaderView(getTableHeader());
}
}
}
代码示例来源:origin: com.synaptix/SynaptixSwing
private void configureEnclosingScrollPane() {
Container p = getParent();
if (p instanceof JViewport) {
Container gp = p.getParent();
if (gp instanceof JScrollPane) {
JScrollPane scrollPane = (JScrollPane) gp;
scrollPane.setColumnHeaderView(getGroupWeekColumnHeader());
scrollPane.setRowHeaderView(getGroupWeekRowHeader());
}
}
}
代码示例来源:origin: org.nuiton.jaxx/jaxx-config
private void $completeSetup() {
allComponentsCreated = true;
if (log.isDebugEnabled()) {
log.debug(this);
}
// inline complete setup of $JPanel0
add($JScrollPane0, BorderLayout.CENTER);
add(go, BorderLayout.SOUTH);
add(treeHeader, BorderLayout.EAST);
// inline complete setup of $JScrollPane0
$JScrollPane0.getViewport().add(detectedCallBack);
addChildrenToTreeHeader();
// apply 3 property setters
$JScrollPane0.setColumnHeaderView(treeHeader);
go.setIcon(SwingUtil.createActionIcon("config-quit"));
}
代码示例来源:origin: uk.org.mygrid.taverna.scufl/scufl-ui
protected void configureScrolling() {
removeAll();
if (isInScrollPane) {
add(table, BorderLayout.CENTER);
JScrollPane pane = (JScrollPane) getParent().getParent();
pane.getViewport().setBackground(Color.WHITE);
pane.setViewportView(FacetsTable.this);
pane.setColumnHeaderView(columnHeaders);
} else {
this.add(columnHeaders, BorderLayout.NORTH);
this.add(table, BorderLayout.CENTER);
}
}
代码示例来源:origin: org.xworker/xworker_core
public static void createColumnHeaderView(ActionContext actionContext){
Thing self = (Thing) actionContext.get("self");
JScrollPane parent = (JScrollPane) actionContext.get("parent");
for(Thing child : self.getChilds()){
Component obj = (Component) child.doAction("create", actionContext);
if(obj != null){
parent.setColumnHeaderView(obj);
break;
}
}
}
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-vmd-game
/** Creates a new instance of SceneEditor */
public SceneEditor(Scene scene) {
this.scene = scene;
ScenePanel editor = new ScenePanel(scene);
this.scroll = new JScrollPane(editor);
scroll.setColumnHeaderView(editor.getRulerHorizontal());
scroll.setRowHeaderView(editor.getRulerVertical());
scroll.setCorner(JScrollPane.UPPER_LEFT_CORNER, editor.getGridButton());
}
代码示例来源:origin: de.sciss/jtreetable
protected void unconfigureEnclosingScrollPane() {
if (!getAutoCreateColumnHeader() && !getAutoCreateRowHeader())
return;
JScrollPane scrollPane = getScrollPaneAncestor();
if (scrollPane == null)
return;
if (getAutoCreateColumnHeader())
scrollPane.setColumnHeaderView(null);
if (getAutoCreateRowHeader()) {
scrollPane.setRowHeaderView(null);
rowHeader = null;
}
}
内容来源于网络,如有侵权,请联系作者删除!