public void changeOrientationOfJFrameToLeft() {
theFrame.setComponentOrientation(ComponentOrientation.LEFT_TO_RIGHT);
for (int i = 0; i < theFrame.getContentPane().getComponentCount(); i++) {
if (!theFrame.getContentPane().getComponent(i).getComponentOrientation().isLeftToRight()) {
theFrame.getContentPane().getComponent(i).setComponentOrientation(ComponentOrientation.LEFT_TO_RIGHT);
theFrame.revalidate();
theFrame.repaint();
}
}
}
ChangeComponentOrientation.java 文件源码
java
阅读 21
收藏 0
点赞 0
评论 0
项目:Hotel-Properties-Management-System
作者:
评论列表
文章目录