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