< prev index next >

test/jdk/javax/swing/JSpinner/WrongEditorTextFieldFont/FontSetByUser.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. --- 1,7 ---- /* ! * Copyright (c) 2015, 2018, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation.
*** 36,55 **** /** * @test * @key headful * @bug 5036022 - * @author Sergey Bylokhov */ ! public class WrongEditorTextFieldFont implements Runnable { private static final Font USERS_FONT = new Font("dialog", Font.BOLD, 41); public static void main(final String[] args) throws Exception { for (final UIManager.LookAndFeelInfo laf : getInstalledLookAndFeels()) { SwingUtilities.invokeAndWait(() -> setLookAndFeel(laf)); ! SwingUtilities.invokeAndWait(new WrongEditorTextFieldFont()); } } @Override public void run() { --- 36,54 ---- /** * @test * @key headful * @bug 5036022 */ ! public class FontSetByUser implements Runnable { private static final Font USERS_FONT = new Font("dialog", Font.BOLD, 41); public static void main(final String[] args) throws Exception { for (final UIManager.LookAndFeelInfo laf : getInstalledLookAndFeels()) { SwingUtilities.invokeAndWait(() -> setLookAndFeel(laf)); ! SwingUtilities.invokeAndWait(new FontSetByUser()); } } @Override public void run() {
< prev index next >