test/javax/swing/JFileChooser/8080628/bug8080628.java

Print this page




  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 import java.util.Locale;
  25 import javax.swing.SwingUtilities;
  26 import javax.swing.UIManager;
  27 import javax.swing.UIManager.LookAndFeelInfo;
  28 
  29 import sun.swing.SwingUtilities2;
  30 
  31 /*
  32  * @test
  33  * @bug 8080628
  34  * @summary No mnemonics on Open and Save buttons in JFileChooser.
  35  * @author Alexey Ivanov

  36  * @run main bug8080628
  37  */
  38 public class bug8080628 {
  39     public static final String[] MNEMONIC_KEYS = new String[] {
  40             "FileChooser.saveButtonMnemonic",
  41             "FileChooser.openButtonMnemonic",
  42             "FileChooser.cancelButtonMnemonic",
  43             "FileChooser.directoryOpenButtonMnemonic"
  44     };
  45 
  46     public static final Locale[] LOCALES = new Locale[] {
  47             new Locale("en"),
  48             new Locale("de"),
  49             new Locale("es"),
  50             new Locale("fr"),
  51             new Locale("it"),
  52             new Locale("ja"),
  53             new Locale("ko"),
  54             new Locale("pt", "BR"),
  55             new Locale("sv"),




  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  */
  23 
  24 import java.util.Locale;
  25 import javax.swing.SwingUtilities;
  26 import javax.swing.UIManager;
  27 import javax.swing.UIManager.LookAndFeelInfo;
  28 
  29 import sun.swing.SwingUtilities2;
  30 
  31 /*
  32  * @test
  33  * @bug 8080628
  34  * @summary No mnemonics on Open and Save buttons in JFileChooser.
  35  * @author Alexey Ivanov
  36  * @modules java.desktop/sun.swing
  37  * @run main bug8080628
  38  */
  39 public class bug8080628 {
  40     public static final String[] MNEMONIC_KEYS = new String[] {
  41             "FileChooser.saveButtonMnemonic",
  42             "FileChooser.openButtonMnemonic",
  43             "FileChooser.cancelButtonMnemonic",
  44             "FileChooser.directoryOpenButtonMnemonic"
  45     };
  46 
  47     public static final Locale[] LOCALES = new Locale[] {
  48             new Locale("en"),
  49             new Locale("de"),
  50             new Locale("es"),
  51             new Locale("fr"),
  52             new Locale("it"),
  53             new Locale("ja"),
  54             new Locale("ko"),
  55             new Locale("pt", "BR"),
  56             new Locale("sv"),