本文整理了Java中java.awt.Container.setComponentOrientation()
方法的一些代码示例,展示了Container.setComponentOrientation()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Container.setComponentOrientation()
方法的具体详情如下:
包路径:java.awt.Container
类名称:Container
方法名:setComponentOrientation
暂无
代码示例来源:origin: stackoverflow.com
static JLabel designTextField()
{
JLabel display = new JLabel("---------------");
Border withoutBorder = new LineBorder(new Color(0, 0, 0), 0, true);
display.setBorder(withoutBorder);
//display.setFont(new Font("Gill Sans MT", Font.BOLD, 40));
return (display);
}
public static void makeSimpleGUI(Container pane) {
JButton button;
pane.setComponentOrientation(ComponentOrientation.LEFT_TO_RIGHT);
pane.setLayout(new GridBagLayout());
GridBagConstraints gbc = new GridBagConstraints();
gbc.fill = GridBagConstraints.HORIZONTAL;
gbc.weightx = 0.5;
gbc.gridx = 0;
gbc.gridy = 0;
//Add of jlabel to display results
pane.add(designTextField(), gbc);
代码示例来源:origin: stackoverflow.com
pane.setComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT);
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/toniclf
detailsTable.getParent().getParent().setComponentOrientation(
o);
内容来源于网络,如有侵权,请联系作者删除!