author | peterz |
Fri, 25 Dec 2009 17:47:08 +0300 | |
changeset 4842 | c9f791782a29 |
child 5506 | 202f599c92aa |
permissions | -rw-r--r-- |
4842
c9f791782a29
6860438: [Nimbus] Code to globally set slider's thumb background doesn't work as specified
peterz
parents:
diff
changeset
|
1 |
/* |
c9f791782a29
6860438: [Nimbus] Code to globally set slider's thumb background doesn't work as specified
peterz
parents:
diff
changeset
|
2 |
* Copyright 2007 Sun Microsystems, Inc. All Rights Reserved. |
c9f791782a29
6860438: [Nimbus] Code to globally set slider's thumb background doesn't work as specified
peterz
parents:
diff
changeset
|
3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
c9f791782a29
6860438: [Nimbus] Code to globally set slider's thumb background doesn't work as specified
peterz
parents:
diff
changeset
|
4 |
* |
c9f791782a29
6860438: [Nimbus] Code to globally set slider's thumb background doesn't work as specified
peterz
parents:
diff
changeset
|
5 |
* This code is free software; you can redistribute it and/or modify it |
c9f791782a29
6860438: [Nimbus] Code to globally set slider's thumb background doesn't work as specified
peterz
parents:
diff
changeset
|
6 |
* under the terms of the GNU General Public License version 2 only, as |
c9f791782a29
6860438: [Nimbus] Code to globally set slider's thumb background doesn't work as specified
peterz
parents:
diff
changeset
|
7 |
* published by the Free Software Foundation. |
c9f791782a29
6860438: [Nimbus] Code to globally set slider's thumb background doesn't work as specified
peterz
parents:
diff
changeset
|
8 |
* |
c9f791782a29
6860438: [Nimbus] Code to globally set slider's thumb background doesn't work as specified
peterz
parents:
diff
changeset
|
9 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
c9f791782a29
6860438: [Nimbus] Code to globally set slider's thumb background doesn't work as specified
peterz
parents:
diff
changeset
|
10 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
c9f791782a29
6860438: [Nimbus] Code to globally set slider's thumb background doesn't work as specified
peterz
parents:
diff
changeset
|
11 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
c9f791782a29
6860438: [Nimbus] Code to globally set slider's thumb background doesn't work as specified
peterz
parents:
diff
changeset
|
12 |
* version 2 for more details (a copy is included in the LICENSE file that |
c9f791782a29
6860438: [Nimbus] Code to globally set slider's thumb background doesn't work as specified
peterz
parents:
diff
changeset
|
13 |
* accompanied this code). |
c9f791782a29
6860438: [Nimbus] Code to globally set slider's thumb background doesn't work as specified
peterz
parents:
diff
changeset
|
14 |
* |
c9f791782a29
6860438: [Nimbus] Code to globally set slider's thumb background doesn't work as specified
peterz
parents:
diff
changeset
|
15 |
* You should have received a copy of the GNU General Public License version |
c9f791782a29
6860438: [Nimbus] Code to globally set slider's thumb background doesn't work as specified
peterz
parents:
diff
changeset
|
16 |
* 2 along with this work; if not, write to the Free Software Foundation, |
c9f791782a29
6860438: [Nimbus] Code to globally set slider's thumb background doesn't work as specified
peterz
parents:
diff
changeset
|
17 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
c9f791782a29
6860438: [Nimbus] Code to globally set slider's thumb background doesn't work as specified
peterz
parents:
diff
changeset
|
18 |
* |
c9f791782a29
6860438: [Nimbus] Code to globally set slider's thumb background doesn't work as specified
peterz
parents:
diff
changeset
|
19 |
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, |
c9f791782a29
6860438: [Nimbus] Code to globally set slider's thumb background doesn't work as specified
peterz
parents:
diff
changeset
|
20 |
* CA 95054 USA or visit www.sun.com if you need additional information or |
c9f791782a29
6860438: [Nimbus] Code to globally set slider's thumb background doesn't work as specified
peterz
parents:
diff
changeset
|
21 |
* have any questions. |
c9f791782a29
6860438: [Nimbus] Code to globally set slider's thumb background doesn't work as specified
peterz
parents:
diff
changeset
|
22 |
*/ |
c9f791782a29
6860438: [Nimbus] Code to globally set slider's thumb background doesn't work as specified
peterz
parents:
diff
changeset
|
23 |
|
c9f791782a29
6860438: [Nimbus] Code to globally set slider's thumb background doesn't work as specified
peterz
parents:
diff
changeset
|
24 |
/* @test |
c9f791782a29
6860438: [Nimbus] Code to globally set slider's thumb background doesn't work as specified
peterz
parents:
diff
changeset
|
25 |
@bug 4300666 |
c9f791782a29
6860438: [Nimbus] Code to globally set slider's thumb background doesn't work as specified
peterz
parents:
diff
changeset
|
26 |
@summary Printing UIDefaults throws NoSuchElementExcept |
c9f791782a29
6860438: [Nimbus] Code to globally set slider's thumb background doesn't work as specified
peterz
parents:
diff
changeset
|
27 |
@author Andrey Pikalev |
c9f791782a29
6860438: [Nimbus] Code to globally set slider's thumb background doesn't work as specified
peterz
parents:
diff
changeset
|
28 |
@run applet bug4300666.html |
c9f791782a29
6860438: [Nimbus] Code to globally set slider's thumb background doesn't work as specified
peterz
parents:
diff
changeset
|
29 |
*/ |
c9f791782a29
6860438: [Nimbus] Code to globally set slider's thumb background doesn't work as specified
peterz
parents:
diff
changeset
|
30 |
|
c9f791782a29
6860438: [Nimbus] Code to globally set slider's thumb background doesn't work as specified
peterz
parents:
diff
changeset
|
31 |
import javax.swing.*; |
c9f791782a29
6860438: [Nimbus] Code to globally set slider's thumb background doesn't work as specified
peterz
parents:
diff
changeset
|
32 |
|
c9f791782a29
6860438: [Nimbus] Code to globally set slider's thumb background doesn't work as specified
peterz
parents:
diff
changeset
|
33 |
|
c9f791782a29
6860438: [Nimbus] Code to globally set slider's thumb background doesn't work as specified
peterz
parents:
diff
changeset
|
34 |
public class bug4300666 extends JApplet { |
c9f791782a29
6860438: [Nimbus] Code to globally set slider's thumb background doesn't work as specified
peterz
parents:
diff
changeset
|
35 |
|
c9f791782a29
6860438: [Nimbus] Code to globally set slider's thumb background doesn't work as specified
peterz
parents:
diff
changeset
|
36 |
public void init() { |
c9f791782a29
6860438: [Nimbus] Code to globally set slider's thumb background doesn't work as specified
peterz
parents:
diff
changeset
|
37 |
UIDefaults d = UIManager.getDefaults(); |
c9f791782a29
6860438: [Nimbus] Code to globally set slider's thumb background doesn't work as specified
peterz
parents:
diff
changeset
|
38 |
d.toString(); |
c9f791782a29
6860438: [Nimbus] Code to globally set slider's thumb background doesn't work as specified
peterz
parents:
diff
changeset
|
39 |
} |
c9f791782a29
6860438: [Nimbus] Code to globally set slider's thumb background doesn't work as specified
peterz
parents:
diff
changeset
|
40 |
} |