equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2010, 2014, 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. |
33 |
33 |
34 public class bug4150029 extends JApplet { |
34 public class bug4150029 extends JApplet { |
35 private boolean res; |
35 private boolean res; |
36 |
36 |
37 public void init() { |
37 public void init() { |
38 if (sun.awt.OSInfo.getOSType() == sun.awt.OSInfo.OSType.MACOSX) { |
38 if (jdk.testlibrary.OSInfo.getOSType() == jdk.testlibrary.OSInfo.OSType.MACOSX) { |
39 try { |
39 try { |
40 UIManager.setLookAndFeel("javax.swing.plaf.metal.MetalLookAndFeel"); |
40 UIManager.setLookAndFeel("javax.swing.plaf.metal.MetalLookAndFeel"); |
41 } catch (Exception e) { |
41 } catch (Exception e) { |
42 throw new RuntimeException(e); |
42 throw new RuntimeException(e); |
43 } |
43 } |