980N/A/*
2362N/A * Copyright (c) 2008, Oracle and/or its affiliates. All rights reserved.
980N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
980N/A *
980N/A * This code is free software; you can redistribute it and/or modify it
980N/A * under the terms of the GNU General Public License version 2 only, as
980N/A * published by the Free Software Foundation.
980N/A *
980N/A * This code is distributed in the hope that it will be useful, but WITHOUT
980N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
980N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
980N/A * version 2 for more details (a copy is included in the LICENSE file that
980N/A * accompanied this code).
980N/A *
980N/A * You should have received a copy of the GNU General Public License version
980N/A * 2 along with this work; if not, write to the Free Software Foundation,
980N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
980N/A *
2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2362N/A * or visit www.oracle.com if you need additional information or have any
2362N/A * questions.
980N/A */
980N/A
980N/A/*
980N/A * @test
980N/A * @bug 6752638
980N/A * @summary Test no NPE calling preferLocaleFonts() on custom GE.
980N/A * @run main PreferLocaleFonts
980N/A */
980N/A
980N/Aimport java.util.*;
980N/Aimport java.awt.*;
980N/Aimport java.awt.image.*;
980N/A
980N/Apublic class PreferLocaleFonts extends GraphicsEnvironment {
980N/A
980N/A public static void main(String args[]) {
980N/A(new PreferLocaleFonts()).preferLocaleFonts();
980N/A }
980N/A public PreferLocaleFonts() {
980N/A super();
980N/A }
980N/A public Graphics2D createGraphics(BufferedImage image) {
980N/A return null;
980N/A }
980N/A public String[] getAvailableFontFamilyNames(Locale locale) {
980N/A return null;
980N/A }
980N/A public String[] getAvailableFontFamilyNames() {
980N/A return null;
980N/A }
980N/A public Font[] getAllFonts() {
980N/A return null;
980N/A }
980N/A public GraphicsDevice getDefaultScreenDevice() throws HeadlessException {
980N/A return null;
980N/A }
980N/A public GraphicsDevice[] getScreenDevices() throws HeadlessException {
980N/A return null;
980N/A }
980N/A}
980N/A