@Action
public void toggleCO() {
JFrame frame = getMainFrame();
ComponentOrientation current = frame.getComponentOrientation();
if (current == ComponentOrientation.LEFT_TO_RIGHT) {
frame.applyComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT);
} else {
frame.applyComponentOrientation(ComponentOrientation.LEFT_TO_RIGHT);
}
frame.getRootPane().revalidate();