Package javax.swing

Examples of javax.swing.JFrame.applyComponentOrientation()


    @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();
View Full Code Here


        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();
        frame.invalidate();
        frame.validate();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.