java.awt.Container.setComponentOrientation()方法的使用及代码示例

x33g5p2x  于2022-01-17 转载在 其他  
字(1.2k)|赞(0)|评价(0)|浏览(141)

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

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);

相关文章

微信公众号

最新文章

更多

Container类方法