Java Code Examples for javax.swing.JFileChooser.setComponentOrientation()

The following are Jave code examples for showing how to use setComponentOrientation() of the javax.swing.JFileChooser class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: openjdk-jdk10   File:   Source Code and License Vote up 6 votes
private static void showFileChooser() throws Exception {
    if (tryLookAndFeel(lookAndFeelComboBox.getSelectedItem().toString())) {

        openChooser = new JFileChooser();

        ComponentOrientation orientation
                = ComponentOrientation.UNKNOWN;

        switch (orientationComboBox.getSelectedItem().toString()) {
            case orientationLTR:
                orientation = ComponentOrientation.LEFT_TO_RIGHT;
            case orientationRTL:
                orientation = ComponentOrientation.RIGHT_TO_LEFT;