3819N/A * Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. 3819N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3819N/A * This code is free software; you can redistribute it and/or modify it 3819N/A * under the terms of the GNU General Public License version 2 only, as 3819N/A * published by the Free Software Foundation. 3819N/A * This code is distributed in the hope that it will be useful, but WITHOUT 3819N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3819N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3819N/A * version 2 for more details (a copy is included in the LICENSE file that 3819N/A * You should have received a copy of the GNU General Public License version 3819N/A * 2 along with this work; if not, write to the Free Software Foundation, 3819N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3819N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3819N/A * or visit www.oracle.com if you need additional information or have any 3819N/A * @summary verify the existence of the method 3819N/A * SunGraphicsEnvironment.useAlternateFontforJALocales 3819N/A * @run main/othervm -Dfile.encoding=windows-31j -Duser.language=ja -Duser.country=JA TestSGEuseAlternateFontforJALocales 3819N/A /* Want to test the JA locale uses alternate font for DialogInput. */ 3819N/A // This tests to make sure we at least have applied 3819N/A // "preferLocaleFonts for Japanese 3819N/A (
"Courier New should not be used for DialogInput");
3819N/A // This is supposed to make sure we are using MS Mincho instead 3819N/A // of MS Gothic. However they are metrics identical so its 3819N/A (
"MS Mincho should be used for DialogInput");