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