test/jdk/javax/swing/UIDefaults/8133926/InternalFrameIcon.java
changeset 49090 82c1fe23c469
parent 47216 71c04702a3d5
equal deleted inserted replaced
49089:149647adb633 49090:82c1fe23c469
     1 /*
     1 /*
     2  * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2015, 2018, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
    43 
    43 
    44     private static void setLookAndFeel(final UIManager.LookAndFeelInfo laf) {
    44     private static void setLookAndFeel(final UIManager.LookAndFeelInfo laf) {
    45         try {
    45         try {
    46             UIManager.setLookAndFeel(laf.getClassName());
    46             UIManager.setLookAndFeel(laf.getClassName());
    47             System.out.println("LookAndFeel: " + laf.getClassName());
    47             System.out.println("LookAndFeel: " + laf.getClassName());
    48         } catch (ClassNotFoundException | InstantiationException |
    48         } catch (ClassNotFoundException | IllegalAccessException |
    49                 UnsupportedLookAndFeelException | IllegalAccessException e) {
    49                 InstantiationException e) {
    50             throw new RuntimeException(e);
    50             throw new RuntimeException(e);
       
    51         } catch (final UnsupportedLookAndFeelException ignored) {
    51         }
    52         }
    52     }
    53     }
    53 
    54 
    54     @Override
    55     @Override
    55     public void run() {
    56     public void run() {