本文整理了Java中javax.swing.JScrollPane.setCorner()
方法的一些代码示例,展示了JScrollPane.setCorner()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JScrollPane.setCorner()
方法的具体详情如下:
包路径:javax.swing.JScrollPane
类名称:JScrollPane
方法名:setCorner
暂无
代码示例来源:origin: alibaba/druid
JLabel jb = new JLabel("N", SwingConstants.CENTER);
jb.setBorder(new BevelBorder(BevelBorder.RAISED, null, null, null, null));
scrollPane.setCorner(JScrollPane.UPPER_LEFT_CORNER, jb);
代码示例来源:origin: com.alibaba/druid
JLabel jb = new JLabel("N", SwingConstants.CENTER);
jb.setBorder(new BevelBorder(BevelBorder.RAISED, null, null, null, null));
scrollPane.setCorner(JScrollPane.UPPER_LEFT_CORNER, jb);
代码示例来源:origin: ron190/jsql-injection
scrollPane.setCorner(ScrollPaneConstants.UPPER_LEFT_CORNER, this.fixedTable.getTableHeader());
代码示例来源:origin: org.fudaa.framework.ctulu/ctulu-ui
public void setCornerInScrollPane(final Component _c) {
try {
theScrollPane.setCorner(ScrollPaneConstants.LOWER_TRAILING_CORNER, _c);
} catch (final IllegalArgumentException _evt) {
theScrollPane.setCorner(ScrollPaneConstants.LOWER_RIGHT_CORNER, _c);
}
}
}
代码示例来源:origin: net.java.dev.laf-widget/laf-widget
public void propertyChange(PropertyChangeEvent evt) {
if (theScrollPane == null)
return;
if ("componentOrientation".equals(evt.getPropertyName())) {
theScrollPane.setCorner(JScrollPane.LOWER_LEADING_CORNER,
null);
theScrollPane.setCorner(JScrollPane.LOWER_TRAILING_CORNER,
theButton);
}
}
};
代码示例来源:origin: org.netbeans.api/org-openide-explorer
@Override
public void setVerticalScrollBarPolicy(int policy) {
if (scrollPane == null) {
return;
}
allowHideColumns = (policy == JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
if (allowHideColumns) {
scrollPane.setCorner(JScrollPane.UPPER_RIGHT_CORNER, colsButton);
}
treeTable.getTableHeader().setReorderingAllowed(allowHideColumns);
scrollPane.setVerticalScrollBarPolicy(policy);
}
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/org-netbeans-modules-editor-lib
protected void initGlyphCorner(JScrollPane scroller){
glyphCorner = new JPanel();
updateScrollPaneCornerColor();
scroller.setCorner(JScrollPane.LOWER_LEFT_CORNER, glyphCorner);
}
代码示例来源:origin: org.softsmithy.lib/lib-core
@Override
public void configureRowHeader(JScrollPane scrollPane) {
scrollPane.setRowHeaderView(rowHeaderTable);
scrollPane.setCorner(JScrollPane.UPPER_LEADING_CORNER,
rowHeaderTable.getTableHeader());
}
代码示例来源:origin: org.fudaa.framework.ctulu/ctulu-ui
public void installButton(JScrollPane _jc) {
try {
_jc.setCorner(ScrollPaneConstants.LOWER_TRAILING_CORNER, getButton());
} catch (final IllegalArgumentException _evt) {
_jc.setCorner(ScrollPaneConstants.LOWER_RIGHT_CORNER, getButton());
}
}
}
代码示例来源:origin: org.softsmithy.lib/softsmithy-lib-swing
@Override
public void unconfigureRowHeader(JScrollPane scrollPane) {
scrollPane.setRowHeaderView(null);
scrollPane.setCorner(JScrollPane.UPPER_LEADING_CORNER, null);
}
}
代码示例来源:origin: org.softsmithy.lib/lib-core
@Override
public void unconfigureRowHeader(JScrollPane scrollPane) {
scrollPane.setRowHeaderView(null);
scrollPane.setCorner(JScrollPane.UPPER_LEADING_CORNER, null);
}
}
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/openide
public void setVerticalScrollBarPolicy(int policy) {
if ( scrollPane == null )
return;
allowHideColumns = ( policy == JScrollPane.VERTICAL_SCROLLBAR_ALWAYS );
if ( allowHideColumns )
scrollPane.setCorner(JScrollPane.UPPER_RIGHT_CORNER, colsButton);
treeTable.getTableHeader().setReorderingAllowed( allowHideColumns );
scrollPane.setVerticalScrollBarPolicy( policy );
}
代码示例来源:origin: net.sf.squirrel-sql.thirdpary-non-maven/openide
public void setVerticalScrollBarPolicy(int policy) {
if ( scrollPane == null )
return;
allowHideColumns = ( policy == JScrollPane.VERTICAL_SCROLLBAR_ALWAYS );
if ( allowHideColumns )
scrollPane.setCorner(JScrollPane.UPPER_RIGHT_CORNER, colsButton);
treeTable.getTableHeader().setReorderingAllowed( allowHideColumns );
scrollPane.setVerticalScrollBarPolicy( policy );
}
代码示例来源:origin: org.swinglabs.swingx/swingx-core
private void removeColumnControlFromCorners(JScrollPane scrollPane, String... corners) {
for (String corner : corners) {
if (scrollPane.getCorner(corner) == getColumnControl()) {
scrollPane.setCorner(corner, null);
}
}
}
代码示例来源:origin: com.haulmont.thirdparty/swingx-core
private void removeColumnControlFromCorners(JScrollPane scrollPane, String... corners) {
for (String corner : corners) {
if (scrollPane.getCorner(corner) == getColumnControl()) {
scrollPane.setCorner(corner, null);
}
}
}
代码示例来源:origin: org.bidib.jbidib.swinglabs.swingx/swingx-core
private void removeColumnControlFromCorners(JScrollPane scrollPane, String... corners) {
for (String corner : corners) {
if (scrollPane.getCorner(corner) == getColumnControl()) {
scrollPane.setCorner(corner, null);
}
}
}
代码示例来源:origin: tinyMediaManager/tinyMediaManager
public static JScrollPane createStripedJScrollPane(JTable table) {
JScrollPane scrollPane = new JScrollPane(table);
scrollPane.setViewport(new StripedViewport(table));
scrollPane.getViewport().setView(table);
// scrollPane.setBorder(BorderFactory.createEmptyBorder());
scrollPane.setCorner(JScrollPane.UPPER_RIGHT_CORNER, createCornerComponent(table));
// scrollPane.setBorder(BorderFactory.createLineBorder(Color.BLACK));
return scrollPane;
}
代码示例来源:origin: stackoverflow.com
JTable table1 = new JTable();
JTable table2 = new JTable();
JScrollPane scrollPane = JScrollPane(table2);
JViewport viewport = new JViewport();
viewport.setView(table1);
viewport.setPreferredSize(table1.getPreferredSize());
scrollPane.setRowHeaderView(viewport);
scrollPane.setCorner(JScrollPane.UPPER_LEFT_CORNER,table1.getTableHeader());
代码示例来源:origin: org.apache.poi/poi-examples
public void setupScroll(JScrollPane scroll) {
if (scroll == this.scroll)
return;
this.scroll = scroll;
if (scroll == null)
return;
SVRowHeader rowHeader = new SVRowHeader(sheet, this, 0);
scroll.setRowHeaderView(rowHeader);
scroll.setCorner(JScrollPane.UPPER_LEADING_CORNER, headerCell("?"));
}
代码示例来源: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());
}
内容来源于网络,如有侵权,请联系作者删除!