本文整理了Java中javax.swing.JScrollPane.setComponentOrientation()
方法的一些代码示例,展示了JScrollPane.setComponentOrientation()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JScrollPane.setComponentOrientation()
方法的具体详情如下:
包路径:javax.swing.JScrollPane
类名称:JScrollPane
方法名:setComponentOrientation
暂无
代码示例来源:origin: com.synaptix/SynaptixSwing
public void setComponentOrientation(ComponentOrientation co) {
super.setComponentOrientation(co);
if (verticalScrollBar != null)
verticalScrollBar.setComponentOrientation(co);
if (horizontalScrollBar != null)
horizontalScrollBar.setComponentOrientation(co);
}
代码示例来源:origin: org.geotools/gt-widgets-swing-pending
private void init(){
treetable = new TreeTable(this);
JScrollPane pane = new JScrollPane(treetable);
pane.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
pane.setComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT);
setLayout(new BorderLayout());
setPreferredSize(new Dimension(250,100));
add(BorderLayout.CENTER,pane);
}
代码示例来源:origin: MegaMek/megamek
scrMek.setBorder(null);
scrMek.setComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT);
scrMek.setPreferredSize(new Dimension(width, height));
scrMek.setMinimumSize(new Dimension(width, height));
代码示例来源:origin: stackoverflow.com
scpButtons.setComponentOrientation(ComponentOrientation.LEFT_TO_RIGHT);
代码示例来源:origin: com.synaptix/SynaptixTattoo
scroller.setComponentOrientation(o);
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/toniclf
scrollpane.setComponentOrientation(chooser.getComponentOrientation());
LookAndFeel.installColors(
scrollpane.getViewport(),
代码示例来源:origin: com.googlecode.vfsjfilechooser2/vfsjfilechooser2
scrollpane.setComponentOrientation(chooser.getComponentOrientation());
LookAndFeel.installColors(scrollpane.getViewport(), "Table.background",
"Table.foreground");
内容来源于网络,如有侵权,请联系作者删除!