KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > java > swing > plaf > nimbus > NimbusDefaults


1 /*
2  * NimbusDefaults.java %E%
3  *
4  * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7 package com.sun.java.swing.plaf.nimbus;
8
9 import com.sun.java.swing.Painter;
10 import java.awt.Graphics JavaDoc;
11 import sun.font.FontManager;
12 import sun.swing.plaf.synth.DefaultSynthStyle;
13
14 import javax.swing.BorderFactory JavaDoc;
15 import javax.swing.JComponent JavaDoc;
16 import javax.swing.JInternalFrame JavaDoc;
17 import javax.swing.UIDefaults JavaDoc;
18 import javax.swing.UIManager JavaDoc;
19 import javax.swing.plaf.BorderUIResource JavaDoc;
20 import javax.swing.plaf.ColorUIResource JavaDoc;
21 import javax.swing.plaf.DimensionUIResource JavaDoc;
22 import javax.swing.plaf.FontUIResource JavaDoc;
23 import javax.swing.plaf.InsetsUIResource JavaDoc;
24 import javax.swing.plaf.synth.Region JavaDoc;
25 import javax.swing.plaf.synth.SynthStyle JavaDoc;
26 import java.awt.Color JavaDoc;
27 import java.awt.Component JavaDoc;
28 import java.awt.Dimension JavaDoc;
29 import java.awt.Font JavaDoc;
30 import java.awt.Graphics2D JavaDoc;
31 import java.awt.Insets JavaDoc;
32 import java.awt.image.BufferedImage JavaDoc;
33 import static java.awt.image.BufferedImage JavaDoc.*;
34 import java.beans.PropertyChangeEvent JavaDoc;
35 import java.beans.PropertyChangeListener JavaDoc;
36 import java.lang.reflect.Constructor JavaDoc;
37 import java.util.ArrayList JavaDoc;
38 import java.util.HashMap JavaDoc;
39 import java.util.HashSet JavaDoc;
40 import java.util.LinkedList JavaDoc;
41 import java.util.List JavaDoc;
42 import java.util.Map JavaDoc;
43 import java.util.Set JavaDoc;
44 import javax.swing.border.Border JavaDoc;
45 import javax.swing.border.CompoundBorder JavaDoc;
46 import javax.swing.plaf.UIResource JavaDoc;
47
48 /**
49  * This class contains all the implementation details related to
50  * Nimbus. It contains all the code for initializing the UIDefaults table,
51  * as well as for selecting
52  * a SynthStyle based on a JComponent/Region pair.
53  *
54  * @author Richard Bair
55  */

56 final class NimbusDefaults {
57     /**
58      * The map of SynthStyles. This map is keyed by Region. Each Region maps
59      * to a List of LazyStyles. Each LazyStyle has a reference to the prefix
60      * that was registered with it. This reference can then be inspected to see
61      * if it is the proper lazy style.
62      * <p/>
63      * There can be more than one LazyStyle for a single Region if there is more
64      * than one prefix defined for a given region. For example, both Button and
65      * "MyButton" might be prefixes assigned to the Region.Button region.
66      */

67     private Map JavaDoc<Region JavaDoc, List JavaDoc<LazyStyle>> m;
68     /**
69      * A map of regions which have been registered.
70      * This mapping is maintained so that the Region can be found based on
71      * prefix in a very fast manner. This is used in the "matches" method of
72      * LazyStyle.
73      */

74     private Map JavaDoc<String JavaDoc, Region JavaDoc> registeredRegions =
75             new HashMap JavaDoc<String JavaDoc, Region JavaDoc>();
76     /**
77      * Our fallback style to avoid NPEs if the proper style cannot be found in
78      * this class. Not sure if relying on DefaultSynthStyle is the best choice.
79      */

80     private DefaultSynthStyle defaultStyle;
81     /**
82      * The default font that will be used. I store this value so that it can be
83      * set in the UIDefaults when requested.
84      */

85     private FontUIResource JavaDoc defaultFont;
86
87     /**
88      * Map of lists of derived colors keyed by the DerivedColorKeys
89      */

90     private Map JavaDoc<DerivedColorKey, DerivedColor> derivedColorsMap =
91             new HashMap JavaDoc<DerivedColorKey, DerivedColor>();
92
93     /** Tempory key used for fetching from the derivedColorsMap */
94     private final DerivedColorKey tmpDCKey = new DerivedColorKey();
95
96     /** Listener for changes to user defaults table */
97     private DefaultsListener defaultsListener = new DefaultsListener();
98
99     /** Called by UIManager when this look and feel is installed. */
100     void initialize() {
101         // add listener for derived colors
102
UIManager.addPropertyChangeListener(defaultsListener);
103         UIManager.getDefaults().addPropertyChangeListener(defaultsListener);
104     }
105
106     /** Called by UIManager when this look and feel is uninstalled. */
107     void uninitialize() {
108         // remove listener for derived colors
109
UIManager.getDefaults().removePropertyChangeListener(defaultsListener);
110         UIManager.removePropertyChangeListener(defaultsListener);
111     }
112
113     /**
114      * Create a new NimbusDefaults. This constructor is only called from
115      * within NimbusLookAndFeel.
116      */

117     NimbusDefaults() {
118         m = new HashMap JavaDoc<Region JavaDoc, List JavaDoc<LazyStyle>>();
119
120         //Create the default font and default style. Also register all of the
121
//regions and their states that this class will use for later lookup.
122
//Additional regions can be registered later by 3rd party components.
123
//These are simply the default registrations.
124
defaultFont = FontManager.getFontConfigFUIR("sans", Font.PLAIN, 12);
125         defaultStyle = new DefaultSynthStyle();
126         defaultStyle.setFont(defaultFont);
127
128         //initialize the map of styles
129
register(Region.ARROW_BUTTON, "ArrowButton");
130         register(Region.BUTTON, "Button");
131         register(Region.TOGGLE_BUTTON, "ToggleButton");
132         register(Region.RADIO_BUTTON, "RadioButton");
133         register(Region.CHECK_BOX, "CheckBox");
134         register(Region.COLOR_CHOOSER, "ColorChooser");
135         register(Region.PANEL, "ColorChooser:\"ColorChooser.previewPanelHolder\"");
136         register(Region.LABEL, "ColorChooser:\"ColorChooser.previewPanelHolder\":\"OptionPane.label\"");
137         register(Region.COMBO_BOX, "ComboBox");
138         register(Region.TEXT_FIELD, "ComboBox:\"ComboBox.textField\"");
139         register(Region.ARROW_BUTTON, "ComboBox:\"ComboBox.arrowButton\"");
140         register(Region.LABEL, "ComboBox:\"ComboBox.listRenderer\"");
141         register(Region.LABEL, "ComboBox:\"ComboBox.renderer\"");
142         register(Region.SCROLL_PANE, "\"ComboBox.scrollPane\"");
143         register(Region.FILE_CHOOSER, "FileChooser");
144         register(Region.INTERNAL_FRAME_TITLE_PANE, "InternalFrameTitlePane");
145         register(Region.INTERNAL_FRAME, "InternalFrame");
146         register(Region.INTERNAL_FRAME_TITLE_PANE, "InternalFrame:InternalFrameTitlePane");
147         register(Region.BUTTON, "InternalFrame:InternalFrameTitlePane:\"InternalFrameTitlePane.menuButton\"");
148         register(Region.BUTTON, "InternalFrame:InternalFrameTitlePane:\"InternalFrameTitlePane.iconifyButton\"");
149         register(Region.BUTTON, "InternalFrame:InternalFrameTitlePane:\"InternalFrameTitlePane.maximizeButton\"");
150         register(Region.BUTTON, "InternalFrame:InternalFrameTitlePane:\"InternalFrameTitlePane.closeButton\"");
151         register(Region.DESKTOP_ICON, "DesktopIcon");
152         register(Region.DESKTOP_PANE, "DesktopPane");
153         register(Region.LABEL, "Label");
154         register(Region.LIST, "List");
155         register(Region.LABEL, "List:\"List.cellRenderer\"");
156         register(Region.MENU_BAR, "MenuBar");
157         register(Region.MENU, "MenuBar:Menu");
158         register(Region.MENU_ITEM_ACCELERATOR, "MenuBar:Menu:MenuItemAccelerator");
159         register(Region.MENU_ITEM, "MenuItem");
160         register(Region.MENU_ITEM_ACCELERATOR, "MenuItem:MenuItemAccelerator");
161         register(Region.RADIO_BUTTON_MENU_ITEM, "RadioButtonMenuItem");
162         register(Region.MENU_ITEM_ACCELERATOR, "RadioButtonMenuItem:MenuItemAccelerator");
163         register(Region.CHECK_BOX_MENU_ITEM, "CheckBoxMenuItem");
164         register(Region.MENU_ITEM_ACCELERATOR, "CheckBoxMenuItem:MenuItemAccelerator");
165         register(Region.MENU, "Menu");
166         register(Region.MENU_ITEM_ACCELERATOR, "Menu:MenuItemAccelerator");
167         register(Region.POPUP_MENU, "PopupMenu");
168         register(Region.POPUP_MENU_SEPARATOR, "PopupMenuSeparator");
169         register(Region.OPTION_PANE, "OptionPane");
170         register(Region.SEPARATOR, "OptionPane:\"OptionPane.separator\"");
171         register(Region.PANEL, "OptionPane:\"OptionPane.messageArea\"");
172         register(Region.LABEL, "OptionPane:\"OptionPane.messageArea\":\"OptionPane.label\"");
173         register(Region.PANEL, "Panel");
174         register(Region.PROGRESS_BAR, "ProgressBar");
175         register(Region.SEPARATOR, "Separator");
176         register(Region.SCROLL_BAR, "ScrollBar");
177         register(Region.ARROW_BUTTON, "ScrollBar:\"ScrollBar.button\"");
178         register(Region.SCROLL_BAR_THUMB, "ScrollBar:ScrollBarThumb");
179         register(Region.SCROLL_BAR_TRACK, "ScrollBar:ScrollBarTrack");
180         register(Region.SCROLL_PANE, "ScrollPane");
181         register(Region.VIEWPORT, "Viewport");
182         register(Region.SLIDER, "Slider");
183         register(Region.SLIDER_THUMB, "Slider:SliderThumb");
184         register(Region.SLIDER_TRACK, "Slider:SliderTrack");
185         register(Region.SPINNER, "Spinner");
186         register(Region.PANEL, "Spinner:\"Spinner.editor\"");
187         register(Region.FORMATTED_TEXT_FIELD, "Spinner:Panel:\"Spinner.formattedTextField\"");
188         register(Region.ARROW_BUTTON, "Spinner:\"Spinner.previousButton\"");
189         register(Region.ARROW_BUTTON, "Spinner:\"Spinner.nextButton\"");
190         register(Region.SPLIT_PANE, "SplitPane");
191         register(Region.SPLIT_PANE_DIVIDER, "SplitPane:SplitPaneDivider");
192         register(Region.TABBED_PANE, "TabbedPane");
193         register(Region.TABBED_PANE_TAB, "TabbedPane:TabbedPaneTab");
194         register(Region.TABBED_PANE_TAB_AREA, "TabbedPane:TabbedPaneTabArea");
195         register(Region.TABBED_PANE_CONTENT, "TabbedPane:TabbedPaneContent");
196         register(Region.TABLE, "Table");
197         register(Region.LABEL, "Table:\"Table.cellRenderer\"");
198         register(Region.TABLE_HEADER, "TableHeader");
199         register(Region.LABEL, "TableHeader:\"TableHeader.renderer\"");
200         register(Region.TEXT_FIELD, "\"Table.editor\"");
201         register(Region.TEXT_FIELD, "\"Tree.cellEditor\"");
202         register(Region.TEXT_FIELD, "TextField");
203         register(Region.FORMATTED_TEXT_FIELD, "FormattedTextField");
204         register(Region.PASSWORD_FIELD, "PasswordField");
205         register(Region.TEXT_AREA, "TextArea");
206         register(Region.TEXT_PANE, "TextPane");
207         register(Region.EDITOR_PANE, "EditorPane");
208         register(Region.TOOL_BAR, "ToolBar");
209         register(Region.BUTTON, "ToolBar:Button");
210         register(Region.TOGGLE_BUTTON, "ToolBar:ToggleButton");
211         register(Region.TOOL_BAR_SEPARATOR, "ToolBarSeparator");
212         register(Region.TOOL_TIP, "ToolTip");
213         register(Region.TREE, "Tree");
214         register(Region.TREE_CELL, "Tree:TreeCell");
215         register(Region.LABEL, "Tree:\"Tree.cellRenderer\"");
216         register(Region.ROOT_PANE, "RootPane");
217
218     }
219
220     //--------------- Methods called by NimbusLookAndFeel
221

222     /**
223      * Called from NimbusLookAndFeel to initialize the UIDefaults.
224      *
225      * @param d UIDefaults table to initialize. This will never be null.
226      * If listeners are attached to <code>d</code>, then you will
227      * only receive notification of LookAndFeel level defaults, not
228      * all defaults on the UIManager.
229      */

230     void initializeDefaults(UIDefaults JavaDoc d) {
231         //Color palette
232
d.put("text",new ColorUIResource JavaDoc(new Color JavaDoc(0, 0, 0, 255)));
233         d.put("control",new ColorUIResource JavaDoc(new Color JavaDoc(214, 217, 223, 255)));
234         d.put("nimbusBase",new ColorUIResource JavaDoc(new Color JavaDoc(51, 98, 140, 255)));
235         d.put("nimbusBlueGrey",getDerivedColor("nimbusBase",0.032459438f,-0.52518797f,0.19607842f,0));
236         d.put("nimbusOrange",new ColorUIResource JavaDoc(new Color JavaDoc(191, 98, 4, 255)));
237         d.put("nimbusGreen",new ColorUIResource JavaDoc(new Color JavaDoc(176, 179, 50, 255)));
238         d.put("nimbusRed",new ColorUIResource JavaDoc(new Color JavaDoc(169, 46, 34, 255)));
239         d.put("nimbusBorder",getDerivedColor("nimbusBlueGrey",0.0f,-0.017358616f,-0.11372548f,0));
240         d.put("nimbusSelection",getDerivedColor("nimbusBase",-0.010750473f,-0.04875779f,-0.007843137f,0));
241         d.put("nimbusInfoBlue",new ColorUIResource JavaDoc(new Color JavaDoc(47, 92, 180, 255)));
242         d.put("nimbusAlertYellow",new ColorUIResource JavaDoc(new Color JavaDoc(255, 220, 35, 255)));
243         d.put("nimbusFocus",new ColorUIResource JavaDoc(new Color JavaDoc(115, 164, 209, 255)));
244         d.put("nimbusSelectedText",new ColorUIResource JavaDoc(new Color JavaDoc(255, 255, 255, 255)));
245         d.put("nimbusSelectionBackground",new ColorUIResource JavaDoc(new Color JavaDoc(57, 105, 138, 255)));
246         d.put("nimbusDisabledText",new ColorUIResource JavaDoc(new Color JavaDoc(142, 143, 145, 255)));
247         d.put("nimbusLightBackground",new ColorUIResource JavaDoc(new Color JavaDoc(255, 255, 255, 255)));
248         d.put("infoText",getDerivedColor("text",0.0f,0.0f,0.0f,0));
249         d.put("info",new ColorUIResource JavaDoc(new Color JavaDoc(242, 242, 189, 255)));
250         d.put("menuText",getDerivedColor("text",0.0f,0.0f,0.0f,0));
251         d.put("menu",getDerivedColor("nimbusBase",0.021348298f,-0.6150531f,0.39999998f,0));
252         d.put("scrollbar",getDerivedColor("nimbusBlueGrey",-0.006944418f,-0.07296763f,0.09019607f,0));
253         d.put("controlText",getDerivedColor("text",0.0f,0.0f,0.0f,0));
254         d.put("controlHighlight",getDerivedColor("nimbusBlueGrey",0.0f,-0.07333623f,0.20392156f,0));
255         d.put("controlLHighlight",getDerivedColor("nimbusBlueGrey",0.0f,-0.098526314f,0.2352941f,0));
256         d.put("controlShadow",getDerivedColor("nimbusBlueGrey",-0.0027777553f,-0.0212406f,0.13333333f,0));
257         d.put("controlDkShadow",getDerivedColor("nimbusBlueGrey",-0.0027777553f,-0.0018306673f,-0.02352941f,0));
258         d.put("textHighlight",getDerivedColor("nimbusSelectionBackground",0.0f,0.0f,0.0f,0));
259         d.put("textHighlightText",getDerivedColor("nimbusSelectedText",0.0f,0.0f,0.0f,0));
260         d.put("textInactiveText",getDerivedColor("nimbusDisabledText",0.0f,0.0f,0.0f,0));
261         d.put("desktop",getDerivedColor("nimbusBase",-0.009207249f,-0.13984653f,-0.07450983f,0));
262         d.put("activeCaption",getDerivedColor("nimbusBlueGrey",0.0f,-0.049920253f,0.031372547f,0));
263         d.put("inactiveCaption",getDerivedColor("nimbusBlueGrey",-0.00505054f,-0.055526316f,0.039215684f,0));
264
265         //Font palette
266
d.put("defaultFont", new FontUIResource JavaDoc(defaultFont));
267         d.put("InternalFrame.titleFont", new DerivedFont("defaultFont", 1.0f, true, null));
268
269         //Border palette
270

271         //The global style definition
272
d.put("textForeground", getDerivedColor("text",0.0f,0.0f,0.0f,0));
273         d.put("textBackground", getDerivedColor("nimbusSelectionBackground",0.0f,0.0f,0.0f,0));
274         d.put("background", getDerivedColor("control",0.0f,0.0f,0.0f,0));
275         d.put("TitledBorder.position", "ABOVE_TOP");
276         d.put("FileView.fullRowSelection", Boolean.TRUE);
277
278         //Initialize ArrowButton
279
d.put("ArrowButton.contentMargins", new InsetsUIResource JavaDoc(0, 0, 0, 0));
280         d.put("ArrowButton.size", new Integer JavaDoc(16));
281         d.put("ArrowButton[Disabled].foregroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.ArrowButtonPainter", ArrowButtonPainter.FOREGROUND_DISABLED, new Insets JavaDoc(0, 0, 0, 0), new Dimension JavaDoc(10, 10), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0));
282         d.put("ArrowButton[Enabled].foregroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.ArrowButtonPainter", ArrowButtonPainter.FOREGROUND_ENABLED, new Insets JavaDoc(0, 0, 0, 0), new Dimension JavaDoc(10, 10), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0));
283
284         //Initialize Button
285
d.put("Button.contentMargins", new InsetsUIResource JavaDoc(6, 14, 6, 14));
286         d.put("Button.defaultButtonFollowsFocus", Boolean.FALSE);
287         d.put("Button[Default].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.ButtonPainter", ButtonPainter.BACKGROUND_DEFAULT, new Insets JavaDoc(7, 7, 7, 7), new Dimension JavaDoc(104, 33), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, 2.0));
288         d.put("Button[Default+Focused].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.ButtonPainter", ButtonPainter.BACKGROUND_DEFAULT_FOCUSED, new Insets JavaDoc(7, 7, 7, 7), new Dimension JavaDoc(104, 33), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, 2.0));
289         d.put("Button[Default+MouseOver].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.ButtonPainter", ButtonPainter.BACKGROUND_MOUSEOVER_DEFAULT, new Insets JavaDoc(7, 7, 7, 7), new Dimension JavaDoc(104, 33), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, 2.0));
290         d.put("Button[Default+Focused+MouseOver].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.ButtonPainter", ButtonPainter.BACKGROUND_MOUSEOVER_DEFAULT_FOCUSED, new Insets JavaDoc(7, 7, 7, 7), new Dimension JavaDoc(104, 33), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, 2.0));
291         d.put("Button[Default+Pressed].textForeground", getDerivedColor("nimbusSelectedText",0.0f,0.0f,0.0f,0));
292         d.put("Button[Default+Pressed].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.ButtonPainter", ButtonPainter.BACKGROUND_PRESSED_DEFAULT, new Insets JavaDoc(7, 7, 7, 7), new Dimension JavaDoc(104, 33), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, 2.0));
293         d.put("Button[Default+Focused+Pressed].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.ButtonPainter", ButtonPainter.BACKGROUND_PRESSED_DEFAULT_FOCUSED, new Insets JavaDoc(7, 7, 7, 7), new Dimension JavaDoc(104, 33), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, 2.0));
294         d.put("Button[Disabled].textForeground", getDerivedColor("nimbusDisabledText",0.0f,0.0f,0.0f,0));
295         d.put("Button[Disabled].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.ButtonPainter", ButtonPainter.BACKGROUND_DISABLED, new Insets JavaDoc(7, 7, 7, 7), new Dimension JavaDoc(104, 33), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, 2.0));
296         d.put("Button[Enabled].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.ButtonPainter", ButtonPainter.BACKGROUND_ENABLED, new Insets JavaDoc(7, 7, 7, 7), new Dimension JavaDoc(104, 33), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, 2.0));
297         d.put("Button[Focused].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.ButtonPainter", ButtonPainter.BACKGROUND_FOCUSED, new Insets JavaDoc(7, 7, 7, 7), new Dimension JavaDoc(104, 33), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, 2.0));
298         d.put("Button[MouseOver].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.ButtonPainter", ButtonPainter.BACKGROUND_MOUSEOVER, new Insets JavaDoc(7, 7, 7, 7), new Dimension JavaDoc(104, 33), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, 2.0));
299         d.put("Button[Focused+MouseOver].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.ButtonPainter", ButtonPainter.BACKGROUND_MOUSEOVER_FOCUSED, new Insets JavaDoc(7, 7, 7, 7), new Dimension JavaDoc(104, 33), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, 2.0));
300         d.put("Button[Pressed].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.ButtonPainter", ButtonPainter.BACKGROUND_PRESSED, new Insets JavaDoc(7, 7, 7, 7), new Dimension JavaDoc(104, 33), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, 2.0));
301         d.put("Button[Focused+Pressed].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.ButtonPainter", ButtonPainter.BACKGROUND_PRESSED_FOCUSED, new Insets JavaDoc(7, 7, 7, 7), new Dimension JavaDoc(104, 33), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, 2.0));
302
303         //Initialize ToggleButton
304
d.put("ToggleButton.contentMargins", new InsetsUIResource JavaDoc(6, 14, 6, 14));
305         d.put("ToggleButton[Disabled].textForeground", getDerivedColor("nimbusDisabledText",0.0f,0.0f,0.0f,0));
306         d.put("ToggleButton[Disabled].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.ToggleButtonPainter", ToggleButtonPainter.BACKGROUND_DISABLED, new Insets JavaDoc(7, 7, 7, 7), new Dimension JavaDoc(104, 33), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, 2.0));
307         d.put("ToggleButton[Enabled].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.ToggleButtonPainter", ToggleButtonPainter.BACKGROUND_ENABLED, new Insets JavaDoc(7, 7, 7, 7), new Dimension JavaDoc(104, 33), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, 2.0));
308         d.put("ToggleButton[Focused].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.ToggleButtonPainter", ToggleButtonPainter.BACKGROUND_FOCUSED, new Insets JavaDoc(7, 7, 7, 7), new Dimension JavaDoc(104, 33), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, 2.0));
309         d.put("ToggleButton[MouseOver].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.ToggleButtonPainter", ToggleButtonPainter.BACKGROUND_MOUSEOVER, new Insets JavaDoc(7, 7, 7, 7), new Dimension JavaDoc(104, 33), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, 2.0));
310         d.put("ToggleButton[Focused+MouseOver].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.ToggleButtonPainter", ToggleButtonPainter.BACKGROUND_MOUSEOVER_FOCUSED, new Insets JavaDoc(7, 7, 7, 7), new Dimension JavaDoc(104, 33), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, 2.0));
311         d.put("ToggleButton[Pressed].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.ToggleButtonPainter", ToggleButtonPainter.BACKGROUND_PRESSED, new Insets JavaDoc(7, 7, 7, 7), new Dimension JavaDoc(104, 33), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, 2.0));
312         d.put("ToggleButton[Focused+Pressed].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.ToggleButtonPainter", ToggleButtonPainter.BACKGROUND_PRESSED_FOCUSED, new Insets JavaDoc(7, 7, 7, 7), new Dimension JavaDoc(104, 33), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, 2.0));
313         d.put("ToggleButton[Selected].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.ToggleButtonPainter", ToggleButtonPainter.BACKGROUND_SELECTED, new Insets JavaDoc(7, 7, 7, 7), new Dimension JavaDoc(72, 24), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, 2.0));
314         d.put("ToggleButton[Focused+Selected].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.ToggleButtonPainter", ToggleButtonPainter.BACKGROUND_SELECTED_FOCUSED, new Insets JavaDoc(7, 7, 7, 7), new Dimension JavaDoc(72, 24), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, 2.0));
315         d.put("ToggleButton[Pressed+Selected].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.ToggleButtonPainter", ToggleButtonPainter.BACKGROUND_PRESSED_SELECTED, new Insets JavaDoc(7, 7, 7, 7), new Dimension JavaDoc(72, 24), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, 2.0));
316         d.put("ToggleButton[Focused+Pressed+Selected].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.ToggleButtonPainter", ToggleButtonPainter.BACKGROUND_PRESSED_SELECTED_FOCUSED, new Insets JavaDoc(7, 7, 7, 7), new Dimension JavaDoc(72, 24), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, 2.0));
317         d.put("ToggleButton[MouseOver+Selected].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.ToggleButtonPainter", ToggleButtonPainter.BACKGROUND_MOUSEOVER_SELECTED, new Insets JavaDoc(7, 7, 7, 7), new Dimension JavaDoc(72, 24), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, 2.0));
318         d.put("ToggleButton[Focused+MouseOver+Selected].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.ToggleButtonPainter", ToggleButtonPainter.BACKGROUND_MOUSEOVER_SELECTED_FOCUSED, new Insets JavaDoc(7, 7, 7, 7), new Dimension JavaDoc(72, 24), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, 2.0));
319         d.put("ToggleButton[Disabled+Selected].textForeground", getDerivedColor("nimbusDisabledText",0.0f,0.0f,0.0f,0));
320         d.put("ToggleButton[Disabled+Selected].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.ToggleButtonPainter", ToggleButtonPainter.BACKGROUND_DISABLED_SELECTED, new Insets JavaDoc(7, 7, 7, 7), new Dimension JavaDoc(72, 24), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, 2.0));
321
322         //Initialize RadioButton
323
d.put("RadioButton.contentMargins", new InsetsUIResource JavaDoc(5, 5, 5, 5));
324         d.put("RadioButton[Disabled].textForeground", getDerivedColor("nimbusDisabledText",0.0f,0.0f,0.0f,0));
325         d.put("RadioButton[Disabled].iconPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.RadioButtonPainter", RadioButtonPainter.ICON_DISABLED, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(18, 18), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0));
326         d.put("RadioButton[Enabled].iconPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.RadioButtonPainter", RadioButtonPainter.ICON_ENABLED, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(18, 18), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0));
327         d.put("RadioButton[Focused].iconPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.RadioButtonPainter", RadioButtonPainter.ICON_FOCUSED, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(18, 18), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0));
328         d.put("RadioButton[MouseOver].iconPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.RadioButtonPainter", RadioButtonPainter.ICON_MOUSEOVER, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(18, 18), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0));
329         d.put("RadioButton[Focused+MouseOver].iconPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.RadioButtonPainter", RadioButtonPainter.ICON_MOUSEOVER_FOCUSED, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(18, 18), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0));
330         d.put("RadioButton[Pressed].iconPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.RadioButtonPainter", RadioButtonPainter.ICON_PRESSED, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(18, 18), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0));
331         d.put("RadioButton[Focused+Pressed].iconPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.RadioButtonPainter", RadioButtonPainter.ICON_PRESSED_FOCUSED, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(18, 18), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0));
332         d.put("RadioButton[Selected].iconPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.RadioButtonPainter", RadioButtonPainter.ICON_SELECTED, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(18, 18), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0));
333         d.put("RadioButton[Focused+Selected].iconPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.RadioButtonPainter", RadioButtonPainter.ICON_SELECTED_FOCUSED, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(18, 18), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0));
334         d.put("RadioButton[Pressed+Selected].iconPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.RadioButtonPainter", RadioButtonPainter.ICON_PRESSED_SELECTED, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(18, 18), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0));
335         d.put("RadioButton[Focused+Pressed+Selected].iconPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.RadioButtonPainter", RadioButtonPainter.ICON_PRESSED_SELECTED_FOCUSED, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(18, 18), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0));
336         d.put("RadioButton[MouseOver+Selected].iconPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.RadioButtonPainter", RadioButtonPainter.ICON_MOUSEOVER_SELECTED, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(18, 18), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0));
337         d.put("RadioButton[Focused+MouseOver+Selected].iconPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.RadioButtonPainter", RadioButtonPainter.ICON_MOUSEOVER_SELECTED_FOCUSED, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(18, 18), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0));
338         d.put("RadioButton[Disabled+Selected].iconPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.RadioButtonPainter", RadioButtonPainter.ICON_DISABLED_SELECTED, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(18, 18), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0));
339         d.put("RadioButton.icon", new NimbusIcon("RadioButton", "iconPainter", 18, 18));
340
341         //Initialize CheckBox
342
d.put("CheckBox.contentMargins", new InsetsUIResource JavaDoc(0, 0, 0, 0));
343         d.put("CheckBox[Disabled].textForeground", getDerivedColor("nimbusDisabledText",0.0f,0.0f,0.0f,0));
344         d.put("CheckBox[Disabled].iconPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.CheckBoxPainter", CheckBoxPainter.ICON_DISABLED, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(18, 18), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0));
345         d.put("CheckBox[Enabled].iconPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.CheckBoxPainter", CheckBoxPainter.ICON_ENABLED, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(18, 18), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0));
346         d.put("CheckBox[Focused].iconPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.CheckBoxPainter", CheckBoxPainter.ICON_FOCUSED, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(18, 18), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0));
347         d.put("CheckBox[MouseOver].iconPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.CheckBoxPainter", CheckBoxPainter.ICON_MOUSEOVER, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(18, 18), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0));
348         d.put("CheckBox[Focused+MouseOver].iconPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.CheckBoxPainter", CheckBoxPainter.ICON_MOUSEOVER_FOCUSED, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(18, 18), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0));
349         d.put("CheckBox[Pressed].iconPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.CheckBoxPainter", CheckBoxPainter.ICON_PRESSED, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(18, 18), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0));
350         d.put("CheckBox[Focused+Pressed].iconPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.CheckBoxPainter", CheckBoxPainter.ICON_PRESSED_FOCUSED, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(18, 18), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0));
351         d.put("CheckBox[Selected].iconPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.CheckBoxPainter", CheckBoxPainter.ICON_SELECTED, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(18, 18), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0));
352         d.put("CheckBox[Focused+Selected].iconPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.CheckBoxPainter", CheckBoxPainter.ICON_SELECTED_FOCUSED, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(18, 18), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0));
353         d.put("CheckBox[Pressed+Selected].iconPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.CheckBoxPainter", CheckBoxPainter.ICON_PRESSED_SELECTED, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(18, 18), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0));
354         d.put("CheckBox[Focused+Pressed+Selected].iconPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.CheckBoxPainter", CheckBoxPainter.ICON_PRESSED_SELECTED_FOCUSED, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(18, 18), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0));
355         d.put("CheckBox[MouseOver+Selected].iconPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.CheckBoxPainter", CheckBoxPainter.ICON_MOUSEOVER_SELECTED, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(18, 18), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0));
356         d.put("CheckBox[Focused+MouseOver+Selected].iconPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.CheckBoxPainter", CheckBoxPainter.ICON_MOUSEOVER_SELECTED_FOCUSED, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(18, 18), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0));
357         d.put("CheckBox[Disabled+Selected].iconPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.CheckBoxPainter", CheckBoxPainter.ICON_DISABLED_SELECTED, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(18, 18), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0));
358         d.put("CheckBox.icon", new NimbusIcon("CheckBox", "iconPainter", 18, 18));
359
360         //Initialize ColorChooser
361
d.put("ColorChooser.contentMargins", new InsetsUIResource JavaDoc(5, 0, 0, 0));
362         d.put("ColorChooser.swatchesDefaultRecentColor", new ColorUIResource JavaDoc(new Color JavaDoc(255, 255, 255, 255)));
363         d.put("ColorChooser:\"ColorChooser.previewPanelHolder\".contentMargins", new InsetsUIResource JavaDoc(0, 5, 10, 5));
364         d.put("ColorChooser:\"ColorChooser.previewPanelHolder\":\"OptionPane.label\".contentMargins", new InsetsUIResource JavaDoc(0, 10, 10, 10));
365
366         //Initialize ComboBox
367
d.put("ComboBox.contentMargins", new InsetsUIResource JavaDoc(0, 0, 0, 0));
368         d.put("ComboBox.States", "Enabled,MouseOver,Pressed,Selected,Disabled,Focused,Editable");
369         d.put("ComboBox.Editable", new ComboBoxEditableState());
370         d.put("ComboBox.buttonWhenNotEditable", Boolean.TRUE);
371         d.put("ComboBox.rendererUseListColors", Boolean.FALSE);
372         d.put("ComboBox.pressedWhenPopupVisible", Boolean.TRUE);
373         d.put("ComboBox.squareButton", Boolean.FALSE);
374         d.put("ComboBox.popupInsets", new InsetsUIResource JavaDoc(-2, 2, 0, 2));
375         d.put("ComboBox[Disabled].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.ComboBoxPainter", ComboBoxPainter.BACKGROUND_DISABLED, new Insets JavaDoc(8, 9, 8, 19), new Dimension JavaDoc(83, 24), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, 2.0));
376         d.put("ComboBox[Disabled+Pressed].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.ComboBoxPainter", ComboBoxPainter.BACKGROUND_DISABLED_PRESSED, new Insets JavaDoc(8, 9, 8, 19), new Dimension JavaDoc(83, 24), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, 2.0));
377         d.put("ComboBox[Enabled].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.ComboBoxPainter", ComboBoxPainter.BACKGROUND_ENABLED, new Insets JavaDoc(8, 9, 8, 19), new Dimension JavaDoc(83, 24), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, 2.0));
378         d.put("ComboBox[Focused].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.ComboBoxPainter", ComboBoxPainter.BACKGROUND_FOCUSED, new Insets JavaDoc(8, 9, 8, 19), new Dimension JavaDoc(83, 24), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, 2.0));
379         d.put("ComboBox[Focused+MouseOver].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.ComboBoxPainter", ComboBoxPainter.BACKGROUND_MOUSEOVER_FOCUSED, new Insets JavaDoc(8, 9, 8, 19), new Dimension JavaDoc(83, 24), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, 2.0));
380         d.put("ComboBox[MouseOver].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.ComboBoxPainter", ComboBoxPainter.BACKGROUND_MOUSEOVER, new Insets JavaDoc(8, 9, 8, 19), new Dimension JavaDoc(83, 24), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, 2.0));
381         d.put("ComboBox[Focused+Pressed].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.ComboBoxPainter", ComboBoxPainter.BACKGROUND_PRESSED_FOCUSED, new Insets JavaDoc(8, 9, 8, 19), new Dimension JavaDoc(83, 24), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, 2.0));
382         d.put("ComboBox[Pressed].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.ComboBoxPainter", ComboBoxPainter.BACKGROUND_PRESSED, new Insets JavaDoc(8, 9, 8, 19), new Dimension JavaDoc(83, 24), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, 2.0));
383         d.put("ComboBox[Enabled+Selected].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.ComboBoxPainter", ComboBoxPainter.BACKGROUND_ENABLED_SELECTED, new Insets JavaDoc(8, 9, 8, 19), new Dimension JavaDoc(83, 24), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, 2.0));
384         d.put("ComboBox[Disabled+Editable].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.ComboBoxPainter", ComboBoxPainter.BACKGROUND_DISABLED_EDITABLE, new Insets JavaDoc(6, 5, 6, 17), new Dimension JavaDoc(79, 21), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, 2.0));
385         d.put("ComboBox[Editable+Enabled].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.ComboBoxPainter", ComboBoxPainter.BACKGROUND_ENABLED_EDITABLE, new Insets JavaDoc(6, 5, 6, 17), new Dimension JavaDoc(79, 21), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, 2.0));
386         d.put("ComboBox[Editable+Focused].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.ComboBoxPainter", ComboBoxPainter.BACKGROUND_FOCUSED_EDITABLE, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(142, 27), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, 2.0));
387         d.put("ComboBox[Editable+MouseOver].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.ComboBoxPainter", ComboBoxPainter.BACKGROUND_MOUSEOVER_EDITABLE, new Insets JavaDoc(4, 5, 5, 17), new Dimension JavaDoc(79, 21), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, 2.0));
388         d.put("ComboBox[Editable+Pressed].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.ComboBoxPainter", ComboBoxPainter.BACKGROUND_PRESSED_EDITABLE, new Insets JavaDoc(4, 5, 5, 17), new Dimension JavaDoc(79, 21), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, 2.0));
389         d.put("ComboBox:\"ComboBox.textField\".contentMargins", new InsetsUIResource JavaDoc(0, 6, 0, 3));
390         d.put("ComboBox:\"ComboBox.textField\"[Disabled].textForeground", getDerivedColor("nimbusDisabledText",0.0f,0.0f,0.0f,0));
391         d.put("ComboBox:\"ComboBox.textField\"[Disabled].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.ComboBoxComboBoxTextFieldPainter", ComboBoxComboBoxTextFieldPainter.BACKGROUND_DISABLED, new Insets JavaDoc(5, 3, 3, 1), new Dimension JavaDoc(64, 24), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, 2.0));
392         d.put("ComboBox:\"ComboBox.textField\"[Enabled].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.ComboBoxComboBoxTextFieldPainter", ComboBoxComboBoxTextFieldPainter.BACKGROUND_ENABLED, new Insets JavaDoc(5, 3, 3, 1), new Dimension JavaDoc(64, 24), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, 2.0));
393         d.put("ComboBox:\"ComboBox.arrowButton\".contentMargins", new InsetsUIResource JavaDoc(0, 0, 0, 0));
394         d.put("ComboBox:\"ComboBox.arrowButton\".States", "Enabled,MouseOver,Pressed,Disabled,Editable");
395         d.put("ComboBox:\"ComboBox.arrowButton\".Editable", new ComboBoxComboBoxArrowButtonEditableState());
396         d.put("ComboBox:\"ComboBox.arrowButton\".size", new Integer JavaDoc(19));
397         d.put("ComboBox:\"ComboBox.arrowButton\"[Disabled+Editable].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.ComboBoxComboBoxArrowButtonPainter", ComboBoxComboBoxArrowButtonPainter.BACKGROUND_DISABLED_EDITABLE, new Insets JavaDoc(8, 1, 8, 8), new Dimension JavaDoc(20, 24), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, 2.0));
398         d.put("ComboBox:\"ComboBox.arrowButton\"[Editable+Enabled].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.ComboBoxComboBoxArrowButtonPainter", ComboBoxComboBoxArrowButtonPainter.BACKGROUND_ENABLED_EDITABLE, new Insets JavaDoc(8, 1, 8, 8), new Dimension JavaDoc(20, 24), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, 2.0));
399         d.put("ComboBox:\"ComboBox.arrowButton\"[Editable+MouseOver].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.ComboBoxComboBoxArrowButtonPainter", ComboBoxComboBoxArrowButtonPainter.BACKGROUND_MOUSEOVER_EDITABLE, new Insets JavaDoc(8, 1, 8, 8), new Dimension JavaDoc(20, 24), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, 2.0));
400         d.put("ComboBox:\"ComboBox.arrowButton\"[Editable+Pressed].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.ComboBoxComboBoxArrowButtonPainter", ComboBoxComboBoxArrowButtonPainter.BACKGROUND_PRESSED_EDITABLE, new Insets JavaDoc(8, 1, 8, 8), new Dimension JavaDoc(20, 24), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, 2.0));
401         d.put("ComboBox:\"ComboBox.arrowButton\"[Editable+Selected].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.ComboBoxComboBoxArrowButtonPainter", ComboBoxComboBoxArrowButtonPainter.BACKGROUND_SELECTED_EDITABLE, new Insets JavaDoc(8, 1, 8, 8), new Dimension JavaDoc(20, 24), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, 2.0));
402         d.put("ComboBox:\"ComboBox.arrowButton\"[Enabled].foregroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.ComboBoxComboBoxArrowButtonPainter", ComboBoxComboBoxArrowButtonPainter.FOREGROUND_ENABLED, new Insets JavaDoc(6, 9, 6, 10), new Dimension JavaDoc(24, 19), true, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, 2.0));
403         d.put("ComboBox:\"ComboBox.arrowButton\"[MouseOver].foregroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.ComboBoxComboBoxArrowButtonPainter", ComboBoxComboBoxArrowButtonPainter.FOREGROUND_MOUSEOVER, new Insets JavaDoc(6, 9, 6, 10), new Dimension JavaDoc(24, 19), true, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, 2.0));
404         d.put("ComboBox:\"ComboBox.arrowButton\"[Disabled].foregroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.ComboBoxComboBoxArrowButtonPainter", ComboBoxComboBoxArrowButtonPainter.FOREGROUND_DISABLED, new Insets JavaDoc(6, 9, 6, 10), new Dimension JavaDoc(24, 19), true, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, 2.0));
405         d.put("ComboBox:\"ComboBox.arrowButton\"[Pressed].foregroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.ComboBoxComboBoxArrowButtonPainter", ComboBoxComboBoxArrowButtonPainter.FOREGROUND_PRESSED, new Insets JavaDoc(6, 9, 6, 10), new Dimension JavaDoc(24, 19), true, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, 2.0));
406         d.put("ComboBox:\"ComboBox.arrowButton\"[Selected].foregroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.ComboBoxComboBoxArrowButtonPainter", ComboBoxComboBoxArrowButtonPainter.FOREGROUND_SELECTED, new Insets JavaDoc(6, 9, 6, 10), new Dimension JavaDoc(24, 19), true, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, 2.0));
407         d.put("ComboBox:\"ComboBox.listRenderer\".contentMargins", new InsetsUIResource JavaDoc(4, 7, 6, 7));
408         d.put("ComboBox:\"ComboBox.listRenderer\".opaque", Boolean.TRUE);
409         d.put("ComboBox:\"ComboBox.listRenderer\".background", getDerivedColor("nimbusLightBackground",0.0f,0.0f,0.0f,0));
410         d.put("ComboBox:\"ComboBox.listRenderer\"[Disabled].textForeground", getDerivedColor("nimbusDisabledText",0.0f,0.0f,0.0f,0));
411         d.put("ComboBox:\"ComboBox.listRenderer\"[Selected].textForeground", getDerivedColor("nimbusSelectedText",0.0f,0.0f,0.0f,0));
412         d.put("ComboBox:\"ComboBox.listRenderer\"[Selected].background", getDerivedColor("nimbusSelectionBackground",0.0f,0.0f,0.0f,0));
413         d.put("ComboBox:\"ComboBox.renderer\".contentMargins", new InsetsUIResource JavaDoc(0, 7, 0, 0));
414         d.put("ComboBox:\"ComboBox.renderer\"[Disabled].textForeground", getDerivedColor("nimbusDisabledText",0.0f,0.0f,0.0f,0));
415         d.put("ComboBox:\"ComboBox.renderer\"[Selected].textForeground", getDerivedColor("nimbusSelectedText",0.0f,0.0f,0.0f,0));
416         d.put("ComboBox:\"ComboBox.renderer\"[Selected].background", getDerivedColor("nimbusSelectionBackground",0.0f,0.0f,0.0f,0));
417
418         //Initialize \"ComboBox.scrollPane\"
419
d.put("\"ComboBox.scrollPane\".contentMargins", new InsetsUIResource JavaDoc(0, 0, 0, 0));
420
421         //Initialize FileChooser
422
d.put("FileChooser.contentMargins", new InsetsUIResource JavaDoc(10, 10, 10, 10));
423         d.put("FileChooser.opaque", Boolean.TRUE);
424         d.put("FileChooser[Enabled].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.FileChooserPainter", FileChooserPainter.BACKGROUND_ENABLED, new Insets JavaDoc(0, 0, 0, 0), new Dimension JavaDoc(100, 30), false, AbstractRegionPainter.PaintContext.CacheMode.NO_CACHING, 1.0, 1.0));
425         d.put("FileChooser[Enabled].fileIconPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.FileChooserPainter", FileChooserPainter.FILEICON_ENABLED, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(16, 16), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0));
426         d.put("FileChooser.fileIcon", new NimbusIcon("FileChooser", "fileIconPainter", 16, 16));
427         d.put("FileChooser[Enabled].directoryIconPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.FileChooserPainter", FileChooserPainter.DIRECTORYICON_ENABLED, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(16, 16), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0));
428         d.put("FileChooser.directoryIcon", new NimbusIcon("FileChooser", "directoryIconPainter", 16, 16));
429         d.put("FileChooser[Enabled].upFolderIconPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.FileChooserPainter", FileChooserPainter.UPFOLDERICON_ENABLED, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(16, 16), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0));
430         d.put("FileChooser.upFolderIcon", new NimbusIcon("FileChooser", "upFolderIconPainter", 16, 16));
431         d.put("FileChooser[Enabled].newFolderIconPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.FileChooserPainter", FileChooserPainter.NEWFOLDERICON_ENABLED, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(16, 16), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0));
432         d.put("FileChooser.newFolderIcon", new NimbusIcon("FileChooser", "newFolderIconPainter", 16, 16));
433         d.put("FileChooser[Enabled].hardDriveIconPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.FileChooserPainter", FileChooserPainter.HARDDRIVEICON_ENABLED, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(16, 16), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0));
434         d.put("FileChooser.hardDriveIcon", new NimbusIcon("FileChooser", "hardDriveIconPainter", 16, 16));
435         d.put("FileChooser[Enabled].floppyDriveIconPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.FileChooserPainter", FileChooserPainter.FLOPPYDRIVEICON_ENABLED, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(16, 16), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0));
436         d.put("FileChooser.floppyDriveIcon", new NimbusIcon("FileChooser", "floppyDriveIconPainter", 16, 16));
437         d.put("FileChooser[Enabled].homeFolderIconPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.FileChooserPainter", FileChooserPainter.HOMEFOLDERICON_ENABLED, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(16, 16), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0));
438         d.put("FileChooser.homeFolderIcon", new NimbusIcon("FileChooser", "homeFolderIconPainter", 16, 16));
439         d.put("FileChooser[Enabled].detailsViewIconPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.FileChooserPainter", FileChooserPainter.DETAILSVIEWICON_ENABLED, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(16, 16), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0));
440         d.put("FileChooser.detailsViewIcon", new NimbusIcon("FileChooser", "detailsViewIconPainter", 16, 16));
441         d.put("FileChooser[Enabled].listViewIconPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.FileChooserPainter", FileChooserPainter.LISTVIEWICON_ENABLED, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(16, 16), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0));
442         d.put("FileChooser.listViewIcon", new NimbusIcon("FileChooser", "listViewIconPainter", 16, 16));
443
444         //Initialize InternalFrameTitlePane
445
d.put("InternalFrameTitlePane.contentMargins", new InsetsUIResource JavaDoc(0, 0, 0, 0));
446         d.put("InternalFrameTitlePane.maxFrameIconSize", new DimensionUIResource JavaDoc(18, 18));
447
448         //Initialize InternalFrame
449
d.put("InternalFrame.contentMargins", new InsetsUIResource JavaDoc(1, 6, 6, 6));
450         d.put("InternalFrame.States", "Enabled,WindowFocused");
451         d.put("InternalFrame.WindowFocused", new InternalFrameWindowFocusedState());
452         d.put("InternalFrame[Enabled].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.InternalFramePainter", InternalFramePainter.BACKGROUND_ENABLED, new Insets JavaDoc(25, 6, 6, 6), new Dimension JavaDoc(25, 36), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY));
453         d.put("InternalFrame[Enabled+WindowFocused].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.InternalFramePainter", InternalFramePainter.BACKGROUND_ENABLED_WINDOWFOCUSED, new Insets JavaDoc(25, 6, 6, 6), new Dimension JavaDoc(25, 36), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY));
454         d.put("InternalFrame:InternalFrameTitlePane.contentMargins", new InsetsUIResource JavaDoc(3, 0, 3, 0));
455         d.put("InternalFrame:InternalFrameTitlePane.States", "Enabled,WindowFocused");
456         d.put("InternalFrame:InternalFrameTitlePane.WindowFocused", new InternalFrameInternalFrameTitlePaneWindowFocusedState());
457         d.put("InternalFrame:InternalFrameTitlePane.titleAlignment", "CENTER");
458         d.put("InternalFrame:InternalFrameTitlePane[Enabled].textForeground", getDerivedColor("nimbusDisabledText",0.0f,0.0f,0.0f,0));
459         d.put("InternalFrame:InternalFrameTitlePane:\"InternalFrameTitlePane.menuButton\".contentMargins", new InsetsUIResource JavaDoc(0, 0, 0, 0));
460         d.put("InternalFrame:InternalFrameTitlePane:\"InternalFrameTitlePane.menuButton\".States", "Enabled,MouseOver,Pressed,Disabled,Focused,Selected,WindowNotFocused");
461         d.put("InternalFrame:InternalFrameTitlePane:\"InternalFrameTitlePane.menuButton\".WindowNotFocused", new InternalFrameInternalFrameTitlePaneInternalFrameTitlePaneMenuButtonWindowNotFocusedState());
462         d.put("InternalFrame:InternalFrameTitlePane:\"InternalFrameTitlePane.menuButton\".test", "am InternalFrameTitlePane.menuButton");
463         d.put("InternalFrame:InternalFrameTitlePane:\"InternalFrameTitlePane.menuButton\"[Enabled].iconPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.InternalFrameInternalFrameTitlePaneInternalFrameTitlePaneMenuButtonPainter", InternalFrameInternalFrameTitlePaneInternalFrameTitlePaneMenuButtonPainter.ICON_ENABLED, new Insets JavaDoc(0, 0, 0, 0), new Dimension JavaDoc(19, 18), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY));
464         d.put("InternalFrame:InternalFrameTitlePane:\"InternalFrameTitlePane.menuButton\"[Disabled].iconPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.InternalFrameInternalFrameTitlePaneInternalFrameTitlePaneMenuButtonPainter", InternalFrameInternalFrameTitlePaneInternalFrameTitlePaneMenuButtonPainter.ICON_DISABLED, new Insets JavaDoc(0, 0, 0, 0), new Dimension JavaDoc(19, 18), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY));
465         d.put("InternalFrame:InternalFrameTitlePane:\"InternalFrameTitlePane.menuButton\"[MouseOver].iconPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.InternalFrameInternalFrameTitlePaneInternalFrameTitlePaneMenuButtonPainter", InternalFrameInternalFrameTitlePaneInternalFrameTitlePaneMenuButtonPainter.ICON_MOUSEOVER, new Insets JavaDoc(0, 0, 0, 0), new Dimension JavaDoc(19, 18), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY));
466         d.put("InternalFrame:InternalFrameTitlePane:\"InternalFrameTitlePane.menuButton\"[Pressed].iconPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.InternalFrameInternalFrameTitlePaneInternalFrameTitlePaneMenuButtonPainter", InternalFrameInternalFrameTitlePaneInternalFrameTitlePaneMenuButtonPainter.ICON_PRESSED, new Insets JavaDoc(0, 0, 0, 0), new Dimension JavaDoc(19, 18), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY));
467         d.put("InternalFrame:InternalFrameTitlePane:\"InternalFrameTitlePane.menuButton\"[Enabled+WindowNotFocused].iconPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.InternalFrameInternalFrameTitlePaneInternalFrameTitlePaneMenuButtonPainter", InternalFrameInternalFrameTitlePaneInternalFrameTitlePaneMenuButtonPainter.ICON_ENABLED_WINDOWNOTFOCUSED, new Insets JavaDoc(0, 0, 0, 0), new Dimension JavaDoc(19, 18), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY));
468         d.put("InternalFrame:InternalFrameTitlePane:\"InternalFrameTitlePane.menuButton\"[MouseOver+WindowNotFocused].iconPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.InternalFrameInternalFrameTitlePaneInternalFrameTitlePaneMenuButtonPainter", InternalFrameInternalFrameTitlePaneInternalFrameTitlePaneMenuButtonPainter.ICON_MOUSEOVER_WINDOWNOTFOCUSED, new Insets JavaDoc(0, 0, 0, 0), new Dimension JavaDoc(19, 18), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY));
469         d.put("InternalFrame:InternalFrameTitlePane:\"InternalFrameTitlePane.menuButton\"[Pressed+WindowNotFocused].iconPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.InternalFrameInternalFrameTitlePaneInternalFrameTitlePaneMenuButtonPainter", InternalFrameInternalFrameTitlePaneInternalFrameTitlePaneMenuButtonPainter.ICON_PRESSED_WINDOWNOTFOCUSED, new Insets JavaDoc(0, 0, 0, 0), new Dimension JavaDoc(19, 18), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY));
470         d.put("InternalFrame:InternalFrameTitlePane:\"InternalFrameTitlePane.menuButton\".icon", new NimbusIcon("InternalFrame:InternalFrameTitlePane:\"InternalFrameTitlePane.menuButton\"", "iconPainter", 19, 18));
471         d.put("InternalFrame:InternalFrameTitlePane:\"InternalFrameTitlePane.iconifyButton\".contentMargins", new InsetsUIResource JavaDoc(9, 9, 9, 9));
472         d.put("InternalFrame:InternalFrameTitlePane:\"InternalFrameTitlePane.iconifyButton\".States", "Enabled,MouseOver,Pressed,Disabled,Focused,Selected,WindowNotFocused");
473         d.put("InternalFrame:InternalFrameTitlePane:\"InternalFrameTitlePane.iconifyButton\".WindowNotFocused", new InternalFrameInternalFrameTitlePaneInternalFrameTitlePaneIconifyButtonWindowNotFocusedState());
474         d.put("InternalFrame:InternalFrameTitlePane:\"InternalFrameTitlePane.iconifyButton\"[Enabled].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.InternalFrameInternalFrameTitlePaneInternalFrameTitlePaneIconifyButtonPainter", InternalFrameInternalFrameTitlePaneInternalFrameTitlePaneIconifyButtonPainter.BACKGROUND_ENABLED, new Insets JavaDoc(0, 0, 0, 0), new Dimension JavaDoc(19, 18), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY));
475         d.put("InternalFrame:InternalFrameTitlePane:\"InternalFrameTitlePane.iconifyButton\"[Disabled].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.InternalFrameInternalFrameTitlePaneInternalFrameTitlePaneIconifyButtonPainter", InternalFrameInternalFrameTitlePaneInternalFrameTitlePaneIconifyButtonPainter.BACKGROUND_DISABLED, new Insets JavaDoc(0, 0, 0, 0), new Dimension JavaDoc(19, 18), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY));
476         d.put("InternalFrame:InternalFrameTitlePane:\"InternalFrameTitlePane.iconifyButton\"[MouseOver].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.InternalFrameInternalFrameTitlePaneInternalFrameTitlePaneIconifyButtonPainter", InternalFrameInternalFrameTitlePaneInternalFrameTitlePaneIconifyButtonPainter.BACKGROUND_MOUSEOVER, new Insets JavaDoc(0, 0, 0, 0), new Dimension JavaDoc(19, 18), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY));
477         d.put("InternalFrame:InternalFrameTitlePane:\"InternalFrameTitlePane.iconifyButton\"[Pressed].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.InternalFrameInternalFrameTitlePaneInternalFrameTitlePaneIconifyButtonPainter", InternalFrameInternalFrameTitlePaneInternalFrameTitlePaneIconifyButtonPainter.BACKGROUND_PRESSED, new Insets JavaDoc(0, 0, 0, 0), new Dimension JavaDoc(19, 18), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY));
478         d.put("InternalFrame:InternalFrameTitlePane:\"InternalFrameTitlePane.iconifyButton\"[Enabled+WindowNotFocused].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.InternalFrameInternalFrameTitlePaneInternalFrameTitlePaneIconifyButtonPainter", InternalFrameInternalFrameTitlePaneInternalFrameTitlePaneIconifyButtonPainter.BACKGROUND_ENABLED_WINDOWNOTFOCUSED, new Insets JavaDoc(0, 0, 0, 0), new Dimension JavaDoc(19, 18), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY));
479         d.put("InternalFrame:InternalFrameTitlePane:\"InternalFrameTitlePane.iconifyButton\"[MouseOver+WindowNotFocused].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.InternalFrameInternalFrameTitlePaneInternalFrameTitlePaneIconifyButtonPainter", InternalFrameInternalFrameTitlePaneInternalFrameTitlePaneIconifyButtonPainter.BACKGROUND_MOUSEOVER_WINDOWNOTFOCUSED, new Insets JavaDoc(0, 0, 0, 0), new Dimension JavaDoc(19, 18), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY));
480         d.put("InternalFrame:InternalFrameTitlePane:\"InternalFrameTitlePane.iconifyButton\"[Pressed+WindowNotFocused].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.InternalFrameInternalFrameTitlePaneInternalFrameTitlePaneIconifyButtonPainter", InternalFrameInternalFrameTitlePaneInternalFrameTitlePaneIconifyButtonPainter.BACKGROUND_PRESSED_WINDOWNOTFOCUSED, new Insets JavaDoc(0, 0, 0, 0), new Dimension JavaDoc(19, 18), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY));
481         d.put("InternalFrame:InternalFrameTitlePane:\"InternalFrameTitlePane.maximizeButton\".contentMargins", new InsetsUIResource JavaDoc(9, 9, 9, 9));
482         d.put("InternalFrame:InternalFrameTitlePane:\"InternalFrameTitlePane.maximizeButton\".States", "Enabled,MouseOver,Pressed,Disabled,Focused,Selected,WindowNotFocused,WindowMaximized");
483         d.put("InternalFrame:InternalFrameTitlePane:\"InternalFrameTitlePane.maximizeButton\".WindowNotFocused", new InternalFrameInternalFrameTitlePaneInternalFrameTitlePaneMaximizeButtonWindowNotFocusedState());
484         d.put("InternalFrame:InternalFrameTitlePane:\"InternalFrameTitlePane.maximizeButton\".WindowMaximized", new InternalFrameInternalFrameTitlePaneInternalFrameTitlePaneMaximizeButtonWindowMaximizedState());
485         d.put("InternalFrame:InternalFrameTitlePane:\"InternalFrameTitlePane.maximizeButton\"[Disabled+WindowMaximized].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.InternalFrameInternalFrameTitlePaneInternalFrameTitlePaneMaximizeButtonPainter", InternalFrameInternalFrameTitlePaneInternalFrameTitlePaneMaximizeButtonPainter.BACKGROUND_DISABLED_WINDOWMAXIMIZED, new Insets JavaDoc(0, 0, 0, 0), new Dimension JavaDoc(19, 18), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY));
486         d.put("InternalFrame:InternalFrameTitlePane:\"InternalFrameTitlePane.maximizeButton\"[Enabled+WindowMaximized].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.InternalFrameInternalFrameTitlePaneInternalFrameTitlePaneMaximizeButtonPainter", InternalFrameInternalFrameTitlePaneInternalFrameTitlePaneMaximizeButtonPainter.BACKGROUND_ENABLED_WINDOWMAXIMIZED, new Insets JavaDoc(0, 0, 0, 0), new Dimension JavaDoc(19, 18), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY));
487         d.put("InternalFrame:InternalFrameTitlePane:\"InternalFrameTitlePane.maximizeButton\"[MouseOver+WindowMaximized].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.InternalFrameInternalFrameTitlePaneInternalFrameTitlePaneMaximizeButtonPainter", InternalFrameInternalFrameTitlePaneInternalFrameTitlePaneMaximizeButtonPainter.BACKGROUND_MOUSEOVER_WINDOWMAXIMIZED, new Insets JavaDoc(0, 0, 0, 0), new Dimension JavaDoc(19, 18), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY));
488         d.put("InternalFrame:InternalFrameTitlePane:\"InternalFrameTitlePane.maximizeButton\"[Pressed+WindowMaximized].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.InternalFrameInternalFrameTitlePaneInternalFrameTitlePaneMaximizeButtonPainter", InternalFrameInternalFrameTitlePaneInternalFrameTitlePaneMaximizeButtonPainter.BACKGROUND_PRESSED_WINDOWMAXIMIZED, new Insets JavaDoc(0, 0, 0, 0), new Dimension JavaDoc(19, 18), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY));
489         d.put("InternalFrame:InternalFrameTitlePane:\"InternalFrameTitlePane.maximizeButton\"[Enabled+WindowMaximized+WindowNotFocused].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.InternalFrameInternalFrameTitlePaneInternalFrameTitlePaneMaximizeButtonPainter", InternalFrameInternalFrameTitlePaneInternalFrameTitlePaneMaximizeButtonPainter.BACKGROUND_ENABLED_WINDOWNOTFOCUSED_WINDOWMAXIMIZED, new Insets JavaDoc(0, 0, 0, 0), new Dimension JavaDoc(19, 18), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY));
490         d.put("InternalFrame:InternalFrameTitlePane:\"InternalFrameTitlePane.maximizeButton\"[MouseOver+WindowMaximized+WindowNotFocused].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.InternalFrameInternalFrameTitlePaneInternalFrameTitlePaneMaximizeButtonPainter", InternalFrameInternalFrameTitlePaneInternalFrameTitlePaneMaximizeButtonPainter.BACKGROUND_MOUSEOVER_WINDOWNOTFOCUSED_WINDOWMAXIMIZED, new Insets JavaDoc(0, 0, 0, 0), new Dimension JavaDoc(19, 18), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY));
491         d.put("InternalFrame:InternalFrameTitlePane:\"InternalFrameTitlePane.maximizeButton\"[Pressed+WindowMaximized+WindowNotFocused].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.InternalFrameInternalFrameTitlePaneInternalFrameTitlePaneMaximizeButtonPainter", InternalFrameInternalFrameTitlePaneInternalFrameTitlePaneMaximizeButtonPainter.BACKGROUND_PRESSED_WINDOWNOTFOCUSED_WINDOWMAXIMIZED, new Insets JavaDoc(0, 0, 0, 0), new Dimension JavaDoc(19, 18), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY));
492         d.put("InternalFrame:InternalFrameTitlePane:\"InternalFrameTitlePane.maximizeButton\"[Disabled].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.InternalFrameInternalFrameTitlePaneInternalFrameTitlePaneMaximizeButtonPainter", InternalFrameInternalFrameTitlePaneInternalFrameTitlePaneMaximizeButtonPainter.BACKGROUND_DISABLED, new Insets JavaDoc(0, 0, 0, 0), new Dimension JavaDoc(19, 18), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY));
493         d.put("InternalFrame:InternalFrameTitlePane:\"InternalFrameTitlePane.maximizeButton\"[Enabled].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.InternalFrameInternalFrameTitlePaneInternalFrameTitlePaneMaximizeButtonPainter", InternalFrameInternalFrameTitlePaneInternalFrameTitlePaneMaximizeButtonPainter.BACKGROUND_ENABLED, new Insets JavaDoc(0, 0, 0, 0), new Dimension JavaDoc(19, 18), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY));
494         d.put("InternalFrame:InternalFrameTitlePane:\"InternalFrameTitlePane.maximizeButton\"[MouseOver].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.InternalFrameInternalFrameTitlePaneInternalFrameTitlePaneMaximizeButtonPainter", InternalFrameInternalFrameTitlePaneInternalFrameTitlePaneMaximizeButtonPainter.BACKGROUND_MOUSEOVER, new Insets JavaDoc(0, 0, 0, 0), new Dimension JavaDoc(19, 18), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY));
495         d.put("InternalFrame:InternalFrameTitlePane:\"InternalFrameTitlePane.maximizeButton\"[Pressed].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.InternalFrameInternalFrameTitlePaneInternalFrameTitlePaneMaximizeButtonPainter", InternalFrameInternalFrameTitlePaneInternalFrameTitlePaneMaximizeButtonPainter.BACKGROUND_PRESSED, new Insets JavaDoc(0, 0, 0, 0), new Dimension JavaDoc(19, 18), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY));
496         d.put("InternalFrame:InternalFrameTitlePane:\"InternalFrameTitlePane.maximizeButton\"[Enabled+WindowNotFocused].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.InternalFrameInternalFrameTitlePaneInternalFrameTitlePaneMaximizeButtonPainter", InternalFrameInternalFrameTitlePaneInternalFrameTitlePaneMaximizeButtonPainter.BACKGROUND_ENABLED_WINDOWNOTFOCUSED, new Insets JavaDoc(0, 0, 0, 0), new Dimension JavaDoc(19, 18), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY));
497         d.put("InternalFrame:InternalFrameTitlePane:\"InternalFrameTitlePane.maximizeButton\"[MouseOver+WindowNotFocused].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.InternalFrameInternalFrameTitlePaneInternalFrameTitlePaneMaximizeButtonPainter", InternalFrameInternalFrameTitlePaneInternalFrameTitlePaneMaximizeButtonPainter.BACKGROUND_MOUSEOVER_WINDOWNOTFOCUSED, new Insets JavaDoc(0, 0, 0, 0), new Dimension JavaDoc(19, 18), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY));
498         d.put("InternalFrame:InternalFrameTitlePane:\"InternalFrameTitlePane.maximizeButton\"[Pressed+WindowNotFocused].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.InternalFrameInternalFrameTitlePaneInternalFrameTitlePaneMaximizeButtonPainter", InternalFrameInternalFrameTitlePaneInternalFrameTitlePaneMaximizeButtonPainter.BACKGROUND_PRESSED_WINDOWNOTFOCUSED, new Insets JavaDoc(0, 0, 0, 0), new Dimension JavaDoc(19, 18), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY));
499         d.put("InternalFrame:InternalFrameTitlePane:\"InternalFrameTitlePane.closeButton\".contentMargins", new InsetsUIResource JavaDoc(9, 9, 9, 9));
500         d.put("InternalFrame:InternalFrameTitlePane:\"InternalFrameTitlePane.closeButton\".States", "Enabled,MouseOver,Pressed,Disabled,Focused,Selected,WindowNotFocused");
501         d.put("InternalFrame:InternalFrameTitlePane:\"InternalFrameTitlePane.closeButton\".WindowNotFocused", new InternalFrameInternalFrameTitlePaneInternalFrameTitlePaneCloseButtonWindowNotFocusedState());
502         d.put("InternalFrame:InternalFrameTitlePane:\"InternalFrameTitlePane.closeButton\"[Disabled].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.InternalFrameInternalFrameTitlePaneInternalFrameTitlePaneCloseButtonPainter", InternalFrameInternalFrameTitlePaneInternalFrameTitlePaneCloseButtonPainter.BACKGROUND_DISABLED, new Insets JavaDoc(0, 0, 0, 0), new Dimension JavaDoc(19, 18), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY));
503         d.put("InternalFrame:InternalFrameTitlePane:\"InternalFrameTitlePane.closeButton\"[Enabled].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.InternalFrameInternalFrameTitlePaneInternalFrameTitlePaneCloseButtonPainter", InternalFrameInternalFrameTitlePaneInternalFrameTitlePaneCloseButtonPainter.BACKGROUND_ENABLED, new Insets JavaDoc(0, 0, 0, 0), new Dimension JavaDoc(19, 18), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY));
504         d.put("InternalFrame:InternalFrameTitlePane:\"InternalFrameTitlePane.closeButton\"[MouseOver].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.InternalFrameInternalFrameTitlePaneInternalFrameTitlePaneCloseButtonPainter", InternalFrameInternalFrameTitlePaneInternalFrameTitlePaneCloseButtonPainter.BACKGROUND_MOUSEOVER, new Insets JavaDoc(0, 0, 0, 0), new Dimension JavaDoc(19, 18), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY));
505         d.put("InternalFrame:InternalFrameTitlePane:\"InternalFrameTitlePane.closeButton\"[Pressed].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.InternalFrameInternalFrameTitlePaneInternalFrameTitlePaneCloseButtonPainter", InternalFrameInternalFrameTitlePaneInternalFrameTitlePaneCloseButtonPainter.BACKGROUND_PRESSED, new Insets JavaDoc(0, 0, 0, 0), new Dimension JavaDoc(19, 18), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY));
506         d.put("InternalFrame:InternalFrameTitlePane:\"InternalFrameTitlePane.closeButton\"[Enabled+WindowNotFocused].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.InternalFrameInternalFrameTitlePaneInternalFrameTitlePaneCloseButtonPainter", InternalFrameInternalFrameTitlePaneInternalFrameTitlePaneCloseButtonPainter.BACKGROUND_ENABLED_WINDOWNOTFOCUSED, new Insets JavaDoc(0, 0, 0, 0), new Dimension JavaDoc(19, 18), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY));
507         d.put("InternalFrame:InternalFrameTitlePane:\"InternalFrameTitlePane.closeButton\"[MouseOver+WindowNotFocused].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.InternalFrameInternalFrameTitlePaneInternalFrameTitlePaneCloseButtonPainter", InternalFrameInternalFrameTitlePaneInternalFrameTitlePaneCloseButtonPainter.BACKGROUND_MOUSEOVER_WINDOWNOTFOCUSED, new Insets JavaDoc(0, 0, 0, 0), new Dimension JavaDoc(19, 18), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY));
508         d.put("InternalFrame:InternalFrameTitlePane:\"InternalFrameTitlePane.closeButton\"[Pressed+WindowNotFocused].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.InternalFrameInternalFrameTitlePaneInternalFrameTitlePaneCloseButtonPainter", InternalFrameInternalFrameTitlePaneInternalFrameTitlePaneCloseButtonPainter.BACKGROUND_PRESSED_WINDOWNOTFOCUSED, new Insets JavaDoc(0, 0, 0, 0), new Dimension JavaDoc(19, 18), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY));
509
510         //Initialize DesktopIcon
511
d.put("DesktopIcon.contentMargins", new InsetsUIResource JavaDoc(4, 6, 5, 4));
512         d.put("DesktopIcon[Enabled].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.DesktopIconPainter", DesktopIconPainter.BACKGROUND_ENABLED, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(28, 26), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY));
513
514         //Initialize DesktopPane
515
d.put("DesktopPane.contentMargins", new InsetsUIResource JavaDoc(0, 0, 0, 0));
516         d.put("DesktopPane.opaque", Boolean.TRUE);
517         d.put("DesktopPane[Enabled].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.DesktopPanePainter", DesktopPanePainter.BACKGROUND_ENABLED, new Insets JavaDoc(0, 0, 0, 0), new Dimension JavaDoc(300, 232), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY));
518
519         //Initialize Label
520
d.put("Label.contentMargins", new InsetsUIResource JavaDoc(0, 0, 0, 0));
521         d.put("Label[Disabled].textForeground", getDerivedColor("nimbusDisabledText",0.0f,0.0f,0.0f,0));
522
523         //Initialize List
524
d.put("List.contentMargins", new InsetsUIResource JavaDoc(0, 0, 0, 0));
525         d.put("List.opaque", Boolean.TRUE);
526         d.put("List.background", getDerivedColor("nimbusLightBackground",0.0f,0.0f,0.0f,0));
527         d.put("List.rendererUseListColors", Boolean.TRUE);
528         d.put("List.rendererUseUIBorder", Boolean.TRUE);
529         d.put("List.cellNoFocusBorder", new BorderUIResource JavaDoc(BorderFactory.createEmptyBorder(2, 5, 2, 5)));
530         d.put("List.focusCellHighlightBorder", new BorderUIResource JavaDoc(new PainterBorder("Tree:TreeCell[Enabled+Focused].backgroundPainter", new Insets JavaDoc(2, 5, 2, 5))));
531         d.put("List[Selected].textForeground", getDerivedColor("nimbusLightBackground",0.0f,0.0f,0.0f,0,false));
532         d.put("List[Selected].textBackground", getDerivedColor("nimbusSelectionBackground",0.0f,0.0f,0.0f,0,false));
533         d.put("List[Disabled+Selected].textBackground", getDerivedColor("nimbusSelectionBackground",0.0f,0.0f,0.0f,0,false));
534         d.put("List[Disabled].textForeground", getDerivedColor("nimbusDisabledText",0.0f,0.0f,0.0f,0,false));
535         d.put("List:\"List.cellRenderer\".contentMargins", new InsetsUIResource JavaDoc(0, 0, 0, 0));
536         d.put("List:\"List.cellRenderer\".opaque", Boolean.TRUE);
537         d.put("List:\"List.cellRenderer\"[Disabled].textForeground", getDerivedColor("nimbusDisabledText",0.0f,0.0f,0.0f,0));
538         d.put("List:\"List.cellRenderer\"[Disabled].background", getDerivedColor("nimbusSelectionBackground",0.0f,0.0f,0.0f,0,false));
539
540         //Initialize MenuBar
541
d.put("MenuBar.contentMargins", new InsetsUIResource JavaDoc(2, 6, 2, 6));
542         d.put("MenuBar[Enabled].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.MenuBarPainter", MenuBarPainter.BACKGROUND_ENABLED, new Insets JavaDoc(1, 0, 0, 0), new Dimension JavaDoc(18, 22), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, 2.0));
543         d.put("MenuBar[Enabled].borderPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.MenuBarPainter", MenuBarPainter.BORDER_ENABLED, new Insets JavaDoc(0, 0, 1, 0), new Dimension JavaDoc(30, 30), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, 2.0));
544         d.put("MenuBar:Menu.contentMargins", new InsetsUIResource JavaDoc(1, 4, 2, 4));
545         d.put("MenuBar:Menu[Disabled].textForeground", getDerivedColor("nimbusDisabledText",0.0f,0.0f,0.0f,0));
546         d.put("MenuBar:Menu[Enabled].textForeground", new ColorUIResource JavaDoc(new Color JavaDoc(35, 35, 36, 255)));
547         d.put("MenuBar:Menu[Selected].textForeground", new ColorUIResource JavaDoc(new Color JavaDoc(255, 255, 255, 255)));
548         d.put("MenuBar:Menu[Selected].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.MenuBarMenuPainter", MenuBarMenuPainter.BACKGROUND_SELECTED, new Insets JavaDoc(0, 0, 0, 0), new Dimension JavaDoc(100, 30), false, AbstractRegionPainter.PaintContext.CacheMode.NO_CACHING, 1.0, 1.0));
549         d.put("MenuBar:Menu:MenuItemAccelerator.contentMargins", new InsetsUIResource JavaDoc(0, 0, 0, 0));
550
551         //Initialize MenuItem
552
d.put("MenuItem.contentMargins", new InsetsUIResource JavaDoc(1, 12, 2, 13));
553         d.put("MenuItem.textIconGap", new Integer JavaDoc(5));
554         d.put("MenuItem[Disabled].textForeground", getDerivedColor("nimbusDisabledText",0.0f,0.0f,0.0f,0));
555         d.put("MenuItem[Enabled].textForeground", new ColorUIResource JavaDoc(new Color JavaDoc(35, 35, 36, 255)));
556         d.put("MenuItem[MouseOver].textForeground", new ColorUIResource JavaDoc(new Color JavaDoc(255, 255, 255, 255)));
557         d.put("MenuItem[MouseOver].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.MenuItemPainter", MenuItemPainter.BACKGROUND_MOUSEOVER, new Insets JavaDoc(0, 0, 0, 0), new Dimension JavaDoc(100, 3), false, AbstractRegionPainter.PaintContext.CacheMode.NO_CACHING, 1.0, 1.0));
558         d.put("MenuItem:MenuItemAccelerator.contentMargins", new InsetsUIResource JavaDoc(0, 0, 0, 0));
559         d.put("MenuItem:MenuItemAccelerator[Disabled].textForeground", getDerivedColor("nimbusDisabledText",0.0f,0.0f,0.0f,0));
560         d.put("MenuItem:MenuItemAccelerator[MouseOver].textForeground", new ColorUIResource JavaDoc(new Color JavaDoc(255, 255, 255, 255)));
561
562         //Initialize RadioButtonMenuItem
563
d.put("RadioButtonMenuItem.contentMargins", new InsetsUIResource JavaDoc(1, 12, 2, 13));
564         d.put("RadioButtonMenuItem.textIconGap", new Integer JavaDoc(5));
565         d.put("RadioButtonMenuItem[Disabled].textForeground", getDerivedColor("nimbusDisabledText",0.0f,0.0f,0.0f,0));
566         d.put("RadioButtonMenuItem[Enabled].textForeground", new ColorUIResource JavaDoc(new Color JavaDoc(35, 35, 36, 255)));
567         d.put("RadioButtonMenuItem[MouseOver].textForeground", new ColorUIResource JavaDoc(new Color JavaDoc(255, 255, 255, 255)));
568         d.put("RadioButtonMenuItem[MouseOver].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.RadioButtonMenuItemPainter", RadioButtonMenuItemPainter.BACKGROUND_MOUSEOVER, new Insets JavaDoc(0, 0, 0, 0), new Dimension JavaDoc(100, 3), false, AbstractRegionPainter.PaintContext.CacheMode.NO_CACHING, 1.0, 1.0));
569         d.put("RadioButtonMenuItem[MouseOver+Selected].textForeground", new ColorUIResource JavaDoc(new Color JavaDoc(255, 255, 255, 255)));
570         d.put("RadioButtonMenuItem[MouseOver+Selected].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.RadioButtonMenuItemPainter", RadioButtonMenuItemPainter.BACKGROUND_SELECTED_MOUSEOVER, new Insets JavaDoc(0, 0, 0, 0), new Dimension JavaDoc(100, 3), false, AbstractRegionPainter.PaintContext.CacheMode.NO_CACHING, 1.0, 1.0));
571         d.put("RadioButtonMenuItem[Disabled+Selected].checkIconPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.RadioButtonMenuItemPainter", RadioButtonMenuItemPainter.CHECKICON_DISABLED_SELECTED, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(9, 10), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0));
572         d.put("RadioButtonMenuItem[Enabled+Selected].checkIconPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.RadioButtonMenuItemPainter", RadioButtonMenuItemPainter.CHECKICON_ENABLED_SELECTED, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(9, 10), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0));
573         d.put("RadioButtonMenuItem[MouseOver+Selected].checkIconPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.RadioButtonMenuItemPainter", RadioButtonMenuItemPainter.CHECKICON_SELECTED_MOUSEOVER, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(9, 10), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0));
574         d.put("RadioButtonMenuItem.checkIcon", new NimbusIcon("RadioButtonMenuItem", "checkIconPainter", 9, 10));
575         d.put("RadioButtonMenuItem:MenuItemAccelerator.contentMargins", new InsetsUIResource JavaDoc(0, 0, 0, 0));
576         d.put("RadioButtonMenuItem:MenuItemAccelerator[MouseOver].textForeground", new ColorUIResource JavaDoc(new Color JavaDoc(255, 255, 255, 255)));
577
578         //Initialize CheckBoxMenuItem
579
d.put("CheckBoxMenuItem.contentMargins", new InsetsUIResource JavaDoc(1, 12, 2, 13));
580         d.put("CheckBoxMenuItem.textIconGap", new Integer JavaDoc(5));
581         d.put("CheckBoxMenuItem[Disabled].textForeground", getDerivedColor("nimbusDisabledText",0.0f,0.0f,0.0f,0));
582         d.put("CheckBoxMenuItem[Enabled].textForeground", new ColorUIResource JavaDoc(new Color JavaDoc(35, 35, 36, 255)));
583         d.put("CheckBoxMenuItem[MouseOver].textForeground", new ColorUIResource JavaDoc(new Color JavaDoc(255, 255, 255, 255)));
584         d.put("CheckBoxMenuItem[MouseOver].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.CheckBoxMenuItemPainter", CheckBoxMenuItemPainter.BACKGROUND_MOUSEOVER, new Insets JavaDoc(0, 0, 0, 0), new Dimension JavaDoc(100, 3), false, AbstractRegionPainter.PaintContext.CacheMode.NO_CACHING, 1.0, 1.0));
585         d.put("CheckBoxMenuItem[MouseOver+Selected].textForeground", new ColorUIResource JavaDoc(new Color JavaDoc(255, 255, 255, 255)));
586         d.put("CheckBoxMenuItem[MouseOver+Selected].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.CheckBoxMenuItemPainter", CheckBoxMenuItemPainter.BACKGROUND_SELECTED_MOUSEOVER, new Insets JavaDoc(0, 0, 0, 0), new Dimension JavaDoc(100, 3), false, AbstractRegionPainter.PaintContext.CacheMode.NO_CACHING, 1.0, 1.0));
587         d.put("CheckBoxMenuItem[Disabled+Selected].checkIconPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.CheckBoxMenuItemPainter", CheckBoxMenuItemPainter.CHECKICON_DISABLED_SELECTED, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(9, 10), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0));
588         d.put("CheckBoxMenuItem[Enabled+Selected].checkIconPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.CheckBoxMenuItemPainter", CheckBoxMenuItemPainter.CHECKICON_ENABLED_SELECTED, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(9, 10), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0));
589         d.put("CheckBoxMenuItem[MouseOver+Selected].checkIconPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.CheckBoxMenuItemPainter", CheckBoxMenuItemPainter.CHECKICON_SELECTED_MOUSEOVER, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(9, 10), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0));
590         d.put("CheckBoxMenuItem.checkIcon", new NimbusIcon("CheckBoxMenuItem", "checkIconPainter", 9, 10));
591         d.put("CheckBoxMenuItem:MenuItemAccelerator.contentMargins", new InsetsUIResource JavaDoc(0, 0, 0, 0));
592         d.put("CheckBoxMenuItem:MenuItemAccelerator[MouseOver].textForeground", new ColorUIResource JavaDoc(new Color JavaDoc(255, 255, 255, 255)));
593
594         //Initialize Menu
595
d.put("Menu.contentMargins", new InsetsUIResource JavaDoc(1, 12, 2, 5));
596         d.put("Menu[Disabled].textForeground", getDerivedColor("nimbusDisabledText",0.0f,0.0f,0.0f,0));
597         d.put("Menu[Enabled].textForeground", new ColorUIResource JavaDoc(new Color JavaDoc(35, 35, 36, 255)));
598         d.put("Menu[Enabled+Selected].textForeground", new ColorUIResource JavaDoc(new Color JavaDoc(255, 255, 255, 255)));
599         d.put("Menu[Enabled+Selected].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.MenuPainter", MenuPainter.BACKGROUND_ENABLED_SELECTED, new Insets JavaDoc(0, 0, 0, 0), new Dimension JavaDoc(100, 30), false, AbstractRegionPainter.PaintContext.CacheMode.NO_CACHING, 1.0, 1.0));
600         d.put("Menu[Disabled].arrowIconPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.MenuPainter", MenuPainter.ARROWICON_DISABLED, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(9, 10), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0));
601         d.put("Menu[Enabled].arrowIconPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.MenuPainter", MenuPainter.ARROWICON_ENABLED, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(9, 10), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0));
602         d.put("Menu[Enabled+Selected].arrowIconPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.MenuPainter", MenuPainter.ARROWICON_ENABLED_SELECTED, new Insets JavaDoc(1, 1, 1, 1), new Dimension JavaDoc(9, 10), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0));
603         d.put("Menu.arrowIcon", new NimbusIcon("Menu", "arrowIconPainter", 9, 10));
604         d.put("Menu:MenuItemAccelerator.contentMargins", new InsetsUIResource JavaDoc(0, 0, 0, 0));
605         d.put("Menu:MenuItemAccelerator[MouseOver].textForeground", new ColorUIResource JavaDoc(new Color JavaDoc(255, 255, 255, 255)));
606
607         //Initialize PopupMenu
608
d.put("PopupMenu.contentMargins", new InsetsUIResource JavaDoc(6, 1, 6, 1));
609         d.put("PopupMenu.opaque", Boolean.TRUE);
610         d.put("PopupMenu[Disabled].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.PopupMenuPainter", PopupMenuPainter.BACKGROUND_DISABLED, new Insets JavaDoc(9, 0, 11, 0), new Dimension JavaDoc(220, 313), false, AbstractRegionPainter.PaintContext.CacheMode.NO_CACHING, 1.0, 1.0));
611         d.put("PopupMenu[Enabled].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.PopupMenuPainter", PopupMenuPainter.BACKGROUND_ENABLED, new Insets JavaDoc(11, 2, 11, 2), new Dimension JavaDoc(220, 313), false, AbstractRegionPainter.PaintContext.CacheMode.NO_CACHING, 1.0, 1.0));
612
613         //Initialize PopupMenuSeparator
614
d.put("PopupMenuSeparator.contentMargins", new InsetsUIResource JavaDoc(1, 0, 2, 0));
615         d.put("PopupMenuSeparator[Enabled].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.PopupMenuSeparatorPainter", PopupMenuSeparatorPainter.BACKGROUND_ENABLED, new Insets JavaDoc(1, 1, 1, 1), new Dimension JavaDoc(100, 3), true, AbstractRegionPainter.PaintContext.CacheMode.NO_CACHING, 1.0, 1.0));
616
617         //Initialize OptionPane
618
d.put("OptionPane.contentMargins", new InsetsUIResource JavaDoc(15, 15, 15, 15));
619         d.put("OptionPane.opaque", Boolean.TRUE);
620         d.put("OptionPane.buttonOrientation", new Integer JavaDoc(4));
621         d.put("OptionPane.messageAnchor", new Integer JavaDoc(17));
622         d.put("OptionPane.separatorPadding", new Integer JavaDoc(0));
623         d.put("OptionPane.sameSizeButtons", Boolean.FALSE);
624         d.put("OptionPane:\"OptionPane.separator\".contentMargins", new InsetsUIResource JavaDoc(1, 0, 0, 0));
625         d.put("OptionPane:\"OptionPane.messageArea\".contentMargins", new InsetsUIResource JavaDoc(0, 0, 10, 0));
626         d.put("OptionPane:\"OptionPane.messageArea\":\"OptionPane.label\".contentMargins", new InsetsUIResource JavaDoc(0, 10, 10, 10));
627         d.put("OptionPane:\"OptionPane.messageArea\":\"OptionPane.label\"[Enabled].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.OptionPaneOptionPaneMessageAreaOptionPaneLabelPainter", OptionPaneOptionPaneMessageAreaOptionPaneLabelPainter.BACKGROUND_ENABLED, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(100, 30), false, AbstractRegionPainter.PaintContext.CacheMode.NO_CACHING, 1.0, 1.0));
628         d.put("OptionPane[Enabled].errorIconPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.OptionPanePainter", OptionPanePainter.ERRORICON_ENABLED, new Insets JavaDoc(0, 0, 0, 0), new Dimension JavaDoc(48, 48), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0));
629         d.put("OptionPane.errorIcon", new NimbusIcon("OptionPane", "errorIconPainter", 48, 48));
630         d.put("OptionPane[Enabled].informationIconPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.OptionPanePainter", OptionPanePainter.INFORMATIONICON_ENABLED, new Insets JavaDoc(0, 0, 0, 0), new Dimension JavaDoc(48, 48), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0));
631         d.put("OptionPane.informationIcon", new NimbusIcon("OptionPane", "informationIconPainter", 48, 48));
632         d.put("OptionPane[Enabled].questionIconPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.OptionPanePainter", OptionPanePainter.QUESTIONICON_ENABLED, new Insets JavaDoc(0, 0, 0, 0), new Dimension JavaDoc(48, 48), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0));
633         d.put("OptionPane.questionIcon", new NimbusIcon("OptionPane", "questionIconPainter", 48, 48));
634         d.put("OptionPane[Enabled].warningIconPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.OptionPanePainter", OptionPanePainter.WARNINGICON_ENABLED, new Insets JavaDoc(0, 0, 0, 0), new Dimension JavaDoc(48, 48), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0));
635         d.put("OptionPane.warningIcon", new NimbusIcon("OptionPane", "warningIconPainter", 48, 48));
636
637         //Initialize Panel
638
d.put("Panel.contentMargins", new InsetsUIResource JavaDoc(0, 0, 0, 0));
639         d.put("Panel.opaque", Boolean.TRUE);
640
641         //Initialize ProgressBar
642
d.put("ProgressBar.contentMargins", new InsetsUIResource JavaDoc(0, 0, 0, 0));
643         d.put("ProgressBar.States", "Enabled,Disabled,Indeterminate,Finished");
644         d.put("ProgressBar.Indeterminate", new ProgressBarIndeterminateState());
645         d.put("ProgressBar.Finished", new ProgressBarFinishedState());
646         d.put("ProgressBar.tileWhenIndeterminate", Boolean.TRUE);
647         d.put("ProgressBar.tileWidth", new Integer JavaDoc(27));
648         d.put("ProgressBar.paintOutsideClip", Boolean.TRUE);
649         d.put("ProgressBar.vertictalSize", new DimensionUIResource JavaDoc(19, 150));
650         d.put("ProgressBar.horizontalSize", new DimensionUIResource JavaDoc(150, 19));
651         d.put("ProgressBar.cycleTime", new Integer JavaDoc(250));
652         d.put("ProgressBar[Enabled].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.ProgressBarPainter", ProgressBarPainter.BACKGROUND_ENABLED, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(29, 19), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0));
653         d.put("ProgressBar[Disabled].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.ProgressBarPainter", ProgressBarPainter.BACKGROUND_DISABLED, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(29, 19), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0));
654         d.put("ProgressBar[Enabled].foregroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.ProgressBarPainter", ProgressBarPainter.FOREGROUND_ENABLED, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(27, 19), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, 2.0));
655         d.put("ProgressBar[Enabled+Finished].foregroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.ProgressBarPainter", ProgressBarPainter.FOREGROUND_ENABLED_FINISHED, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(27, 19), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, 2.0));
656         d.put("ProgressBar[Enabled+Indeterminate].progressPadding", new Integer JavaDoc(3));
657         d.put("ProgressBar[Enabled+Indeterminate].foregroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.ProgressBarPainter", ProgressBarPainter.FOREGROUND_ENABLED_INDETERMINATE, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(30, 13), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, 2.0));
658         d.put("ProgressBar[Disabled].foregroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.ProgressBarPainter", ProgressBarPainter.FOREGROUND_DISABLED, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(27, 19), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, 2.0));
659         d.put("ProgressBar[Disabled+Finished].foregroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.ProgressBarPainter", ProgressBarPainter.FOREGROUND_DISABLED_FINISHED, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(27, 19), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, 2.0));
660         d.put("ProgressBar[Disabled+Indeterminate].progressPadding", new Integer JavaDoc(3));
661         d.put("ProgressBar[Disabled+Indeterminate].foregroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.ProgressBarPainter", ProgressBarPainter.FOREGROUND_DISABLED_INDETERMINATE, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(30, 13), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, 2.0));
662
663         //Initialize Separator
664
d.put("Separator.contentMargins", new InsetsUIResource JavaDoc(0, 0, 0, 0));
665         d.put("Separator[Enabled].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.SeparatorPainter", SeparatorPainter.BACKGROUND_ENABLED, new Insets JavaDoc(0, 40, 0, 40), new Dimension JavaDoc(100, 3), true, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0));
666
667         //Initialize ScrollBar
668
d.put("ScrollBar.contentMargins", new InsetsUIResource JavaDoc(0, 0, 0, 0));
669         d.put("ScrollBar.opaque", Boolean.TRUE);
670         d.put("ScrollBar.incrementButtonGap", new Integer JavaDoc(-8));
671         d.put("ScrollBar.decrementButtonGap", new Integer JavaDoc(-8));
672         d.put("ScrollBar.thumbHeight", new Integer JavaDoc(15));
673         d.put("ScrollBar.minimumThumbSize", new DimensionUIResource JavaDoc(29, 29));
674         d.put("ScrollBar.maximumThumbSize", new DimensionUIResource JavaDoc(1000, 1000));
675         d.put("ScrollBar:\"ScrollBar.button\".contentMargins", new InsetsUIResource JavaDoc(0, 0, 0, 0));
676         d.put("ScrollBar:\"ScrollBar.button\".size", new Integer JavaDoc(25));
677         d.put("ScrollBar:\"ScrollBar.button\"[Enabled].foregroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.ScrollBarScrollBarButtonPainter", ScrollBarScrollBarButtonPainter.FOREGROUND_ENABLED, new Insets JavaDoc(1, 1, 1, 1), new Dimension JavaDoc(25, 15), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0));
678         d.put("ScrollBar:\"ScrollBar.button\"[Disabled].foregroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.ScrollBarScrollBarButtonPainter", ScrollBarScrollBarButtonPainter.FOREGROUND_DISABLED, new Insets JavaDoc(1, 1, 1, 1), new Dimension JavaDoc(25, 15), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0));
679         d.put("ScrollBar:\"ScrollBar.button\"[MouseOver].foregroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.ScrollBarScrollBarButtonPainter", ScrollBarScrollBarButtonPainter.FOREGROUND_MOUSEOVER, new Insets JavaDoc(1, 1, 1, 1), new Dimension JavaDoc(25, 15), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0));
680         d.put("ScrollBar:\"ScrollBar.button\"[Pressed].foregroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.ScrollBarScrollBarButtonPainter", ScrollBarScrollBarButtonPainter.FOREGROUND_PRESSED, new Insets JavaDoc(1, 1, 1, 1), new Dimension JavaDoc(25, 15), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0));
681         d.put("ScrollBar:ScrollBarThumb.contentMargins", new InsetsUIResource JavaDoc(0, 0, 0, 0));
682         d.put("ScrollBar:ScrollBarThumb[Enabled].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.ScrollBarScrollBarThumbPainter", ScrollBarScrollBarThumbPainter.BACKGROUND_ENABLED, new Insets JavaDoc(0, 15, 0, 15), new Dimension JavaDoc(38, 15), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, 2.0));
683         d.put("ScrollBar:ScrollBarThumb[MouseOver].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.ScrollBarScrollBarThumbPainter", ScrollBarScrollBarThumbPainter.BACKGROUND_MOUSEOVER, new Insets JavaDoc(0, 15, 0, 15), new Dimension JavaDoc(38, 15), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, 2.0));
684         d.put("ScrollBar:ScrollBarThumb[Pressed].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.ScrollBarScrollBarThumbPainter", ScrollBarScrollBarThumbPainter.BACKGROUND_PRESSED, new Insets JavaDoc(0, 15, 0, 15), new Dimension JavaDoc(38, 15), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, 2.0));
685         d.put("ScrollBar:ScrollBarTrack.contentMargins", new InsetsUIResource JavaDoc(0, 0, 0, 0));
686         d.put("ScrollBar:ScrollBarTrack[Disabled].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.ScrollBarScrollBarTrackPainter", ScrollBarScrollBarTrackPainter.BACKGROUND_DISABLED, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(18, 15), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, 2.0));
687         d.put("ScrollBar:ScrollBarTrack[Enabled].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.ScrollBarScrollBarTrackPainter", ScrollBarScrollBarTrackPainter.BACKGROUND_ENABLED, new Insets JavaDoc(5, 10, 5, 9), new Dimension JavaDoc(34, 15), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0));
688
689         //Initialize ScrollPane
690
d.put("ScrollPane.contentMargins", new InsetsUIResource JavaDoc(3, 3, 3, 3));
691         d.put("ScrollPane.useChildTextComponentFocus", Boolean.TRUE);
692         d.put("ScrollPane[Enabled+Focused].borderPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.ScrollPanePainter", ScrollPanePainter.BORDER_ENABLED_FOCUSED, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(122, 24), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY));
693         d.put("ScrollPane[Enabled].borderPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.ScrollPanePainter", ScrollPanePainter.BORDER_ENABLED, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(122, 24), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY));
694
695         //Initialize Viewport
696
d.put("Viewport.contentMargins", new InsetsUIResource JavaDoc(0, 0, 0, 0));
697         d.put("Viewport.opaque", Boolean.TRUE);
698
699         //Initialize Slider
700
d.put("Slider.contentMargins", new InsetsUIResource JavaDoc(0, 0, 0, 0));
701         d.put("Slider.States", "Enabled,MouseOver,Pressed,Disabled,Focused,Selected,ArrowShape");
702         d.put("Slider.ArrowShape", new SliderArrowShapeState());
703         d.put("Slider.thumbWidth", new Integer JavaDoc(17));
704         d.put("Slider.thumbHeight", new Integer JavaDoc(17));
705         d.put("Slider.trackBorder", new Integer JavaDoc(0));
706         d.put("Slider.paintValue", Boolean.FALSE);
707         d.put("Slider.tickColor", new ColorUIResource JavaDoc(new Color JavaDoc(35, 40, 48, 255)));
708         d.put("Slider:SliderThumb.contentMargins", new InsetsUIResource JavaDoc(0, 0, 0, 0));
709         d.put("Slider:SliderThumb.States", "Enabled,MouseOver,Pressed,Disabled,Focused,Selected,ArrowShape");
710         d.put("Slider:SliderThumb.ArrowShape", new SliderSliderThumbArrowShapeState());
711         d.put("Slider:SliderThumb[Disabled].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.SliderSliderThumbPainter", SliderSliderThumbPainter.BACKGROUND_DISABLED, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(17, 17), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0));
712         d.put("Slider:SliderThumb[Enabled].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.SliderSliderThumbPainter", SliderSliderThumbPainter.BACKGROUND_ENABLED, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(17, 17), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0));
713         d.put("Slider:SliderThumb[Focused].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.SliderSliderThumbPainter", SliderSliderThumbPainter.BACKGROUND_FOCUSED, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(17, 17), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0));
714         d.put("Slider:SliderThumb[Focused+MouseOver].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.SliderSliderThumbPainter", SliderSliderThumbPainter.BACKGROUND_FOCUSED_MOUSEOVER, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(17, 17), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0));
715         d.put("Slider:SliderThumb[Focused+Pressed].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.SliderSliderThumbPainter", SliderSliderThumbPainter.BACKGROUND_FOCUSED_PRESSED, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(17, 17), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0));
716         d.put("Slider:SliderThumb[MouseOver].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.SliderSliderThumbPainter", SliderSliderThumbPainter.BACKGROUND_MOUSEOVER, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(17, 17), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0));
717         d.put("Slider:SliderThumb[Pressed].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.SliderSliderThumbPainter", SliderSliderThumbPainter.BACKGROUND_PRESSED, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(17, 17), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0));
718         d.put("Slider:SliderThumb[ArrowShape+Enabled].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.SliderSliderThumbPainter", SliderSliderThumbPainter.BACKGROUND_ENABLED_ARROWSHAPE, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(17, 17), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0));
719         d.put("Slider:SliderThumb[ArrowShape+Disabled].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.SliderSliderThumbPainter", SliderSliderThumbPainter.BACKGROUND_DISABLED_ARROWSHAPE, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(17, 17), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0));
720         d.put("Slider:SliderThumb[ArrowShape+MouseOver].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.SliderSliderThumbPainter", SliderSliderThumbPainter.BACKGROUND_MOUSEOVER_ARROWSHAPE, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(17, 17), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0));
721         d.put("Slider:SliderThumb[ArrowShape+Pressed].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.SliderSliderThumbPainter", SliderSliderThumbPainter.BACKGROUND_PRESSED_ARROWSHAPE, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(17, 17), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0));
722         d.put("Slider:SliderThumb[ArrowShape+Focused].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.SliderSliderThumbPainter", SliderSliderThumbPainter.BACKGROUND_FOCUSED_ARROWSHAPE, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(17, 17), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0));
723         d.put("Slider:SliderThumb[ArrowShape+Focused+MouseOver].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.SliderSliderThumbPainter", SliderSliderThumbPainter.BACKGROUND_FOCUSED_MOUSEOVER_ARROWSHAPE, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(17, 17), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0));
724         d.put("Slider:SliderThumb[ArrowShape+Focused+Pressed].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.SliderSliderThumbPainter", SliderSliderThumbPainter.BACKGROUND_FOCUSED_PRESSED_ARROWSHAPE, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(17, 17), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0));
725         d.put("Slider:SliderTrack.contentMargins", new InsetsUIResource JavaDoc(0, 0, 0, 0));
726         d.put("Slider:SliderTrack.States", "Enabled,MouseOver,Pressed,Disabled,Focused,Selected,ArrowShape");
727         d.put("Slider:SliderTrack.ArrowShape", new SliderSliderTrackArrowShapeState());
728         d.put("Slider:SliderTrack[Disabled].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.SliderSliderTrackPainter", SliderSliderTrackPainter.BACKGROUND_DISABLED, new Insets JavaDoc(6, 5, 6, 5), new Dimension JavaDoc(23, 17), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, 2.0));
729         d.put("Slider:SliderTrack[Enabled].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.SliderSliderTrackPainter", SliderSliderTrackPainter.BACKGROUND_ENABLED, new Insets JavaDoc(6, 5, 6, 5), new Dimension JavaDoc(23, 17), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0));
730
731         //Initialize Spinner
732
d.put("Spinner.contentMargins", new InsetsUIResource JavaDoc(0, 0, 0, 0));
733         d.put("Spinner:\"Spinner.editor\".contentMargins", new InsetsUIResource JavaDoc(0, 0, 0, 0));
734         d.put("Spinner:Panel:\"Spinner.formattedTextField\".contentMargins", new InsetsUIResource JavaDoc(6, 6, 5, 6));
735         d.put("Spinner:Panel:\"Spinner.formattedTextField\"[Disabled].textForeground", getDerivedColor("nimbusDisabledText",0.0f,0.0f,0.0f,0));
736         d.put("Spinner:Panel:\"Spinner.formattedTextField\"[Disabled].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.SpinnerPanelSpinnerFormattedTextFieldPainter", SpinnerPanelSpinnerFormattedTextFieldPainter.BACKGROUND_DISABLED, new Insets JavaDoc(5, 3, 3, 1), new Dimension JavaDoc(64, 24), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY));
737         d.put("Spinner:Panel:\"Spinner.formattedTextField\"[Enabled].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.SpinnerPanelSpinnerFormattedTextFieldPainter", SpinnerPanelSpinnerFormattedTextFieldPainter.BACKGROUND_ENABLED, new Insets JavaDoc(5, 3, 3, 1), new Dimension JavaDoc(64, 24), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY));
738         d.put("Spinner:Panel:\"Spinner.formattedTextField\"[Focused].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.SpinnerPanelSpinnerFormattedTextFieldPainter", SpinnerPanelSpinnerFormattedTextFieldPainter.BACKGROUND_FOCUSED, new Insets JavaDoc(5, 3, 3, 1), new Dimension JavaDoc(64, 24), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY));
739         d.put("Spinner:Panel:\"Spinner.formattedTextField\"[Selected].textForeground", getDerivedColor("nimbusSelectedText",0.0f,0.0f,0.0f,0));
740         d.put("Spinner:Panel:\"Spinner.formattedTextField\"[Selected].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.SpinnerPanelSpinnerFormattedTextFieldPainter", SpinnerPanelSpinnerFormattedTextFieldPainter.BACKGROUND_SELECTED, new Insets JavaDoc(5, 3, 3, 1), new Dimension JavaDoc(64, 24), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY));
741         d.put("Spinner:Panel:\"Spinner.formattedTextField\"[Focused+Selected].textForeground", getDerivedColor("nimbusSelectedText",0.0f,0.0f,0.0f,0));
742         d.put("Spinner:Panel:\"Spinner.formattedTextField\"[Focused+Selected].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.SpinnerPanelSpinnerFormattedTextFieldPainter", SpinnerPanelSpinnerFormattedTextFieldPainter.BACKGROUND_SELECTED_FOCUSED, new Insets JavaDoc(5, 3, 3, 1), new Dimension JavaDoc(64, 24), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY));
743         d.put("Spinner:\"Spinner.previousButton\".contentMargins", new InsetsUIResource JavaDoc(0, 0, 0, 0));
744         d.put("Spinner:\"Spinner.previousButton\".size", new Integer JavaDoc(20));
745         d.put("Spinner:\"Spinner.previousButton\"[Disabled].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.SpinnerSpinnerPreviousButtonPainter", SpinnerSpinnerPreviousButtonPainter.BACKGROUND_DISABLED, new Insets JavaDoc(0, 1, 6, 7), new Dimension JavaDoc(20, 12), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0));
746         d.put("Spinner:\"Spinner.previousButton\"[Enabled].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.SpinnerSpinnerPreviousButtonPainter", SpinnerSpinnerPreviousButtonPainter.BACKGROUND_ENABLED, new Insets JavaDoc(0, 1, 6, 7), new Dimension JavaDoc(20, 12), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0));
747         d.put("Spinner:\"Spinner.previousButton\"[Focused].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.SpinnerSpinnerPreviousButtonPainter", SpinnerSpinnerPreviousButtonPainter.BACKGROUND_FOCUSED, new Insets JavaDoc(0, 1, 6, 7), new Dimension JavaDoc(20, 12), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0));
748         d.put("Spinner:\"Spinner.previousButton\"[Focused+MouseOver].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.SpinnerSpinnerPreviousButtonPainter", SpinnerSpinnerPreviousButtonPainter.BACKGROUND_MOUSEOVER_FOCUSED, new Insets JavaDoc(3, 1, 6, 7), new Dimension JavaDoc(20, 12), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0));
749         d.put("Spinner:\"Spinner.previousButton\"[Focused+Pressed].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.SpinnerSpinnerPreviousButtonPainter", SpinnerSpinnerPreviousButtonPainter.BACKGROUND_PRESSED_FOCUSED, new Insets JavaDoc(0, 1, 6, 7), new Dimension JavaDoc(20, 12), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0));
750         d.put("Spinner:\"Spinner.previousButton\"[MouseOver].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.SpinnerSpinnerPreviousButtonPainter", SpinnerSpinnerPreviousButtonPainter.BACKGROUND_MOUSEOVER, new Insets JavaDoc(0, 1, 6, 7), new Dimension JavaDoc(20, 12), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0));
751         d.put("Spinner:\"Spinner.previousButton\"[Pressed].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.SpinnerSpinnerPreviousButtonPainter", SpinnerSpinnerPreviousButtonPainter.BACKGROUND_PRESSED, new Insets JavaDoc(0, 1, 6, 7), new Dimension JavaDoc(20, 12), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0));
752         d.put("Spinner:\"Spinner.previousButton\"[Disabled].foregroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.SpinnerSpinnerPreviousButtonPainter", SpinnerSpinnerPreviousButtonPainter.FOREGROUND_DISABLED, new Insets JavaDoc(3, 6, 5, 9), new Dimension JavaDoc(20, 12), true, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0));
753         d.put("Spinner:\"Spinner.previousButton\"[Enabled].foregroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.SpinnerSpinnerPreviousButtonPainter", SpinnerSpinnerPreviousButtonPainter.FOREGROUND_ENABLED, new Insets JavaDoc(3, 6, 5, 9), new Dimension JavaDoc(20, 12), true, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0));
754         d.put("Spinner:\"Spinner.previousButton\"[Focused].foregroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.SpinnerSpinnerPreviousButtonPainter", SpinnerSpinnerPreviousButtonPainter.FOREGROUND_FOCUSED, new Insets JavaDoc(3, 6, 5, 9), new Dimension JavaDoc(20, 12), true, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0));
755         d.put("Spinner:\"Spinner.previousButton\"[Focused+MouseOver].foregroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.SpinnerSpinnerPreviousButtonPainter", SpinnerSpinnerPreviousButtonPainter.FOREGROUND_MOUSEOVER_FOCUSED, new Insets JavaDoc(3, 6, 5, 9), new Dimension JavaDoc(20, 12), true, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0));
756         d.put("Spinner:\"Spinner.previousButton\"[Focused+Pressed].foregroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.SpinnerSpinnerPreviousButtonPainter", SpinnerSpinnerPreviousButtonPainter.FOREGROUND_PRESSED_FOCUSED, new Insets JavaDoc(3, 6, 5, 9), new Dimension JavaDoc(20, 12), true, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0));
757         d.put("Spinner:\"Spinner.previousButton\"[MouseOver].foregroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.SpinnerSpinnerPreviousButtonPainter", SpinnerSpinnerPreviousButtonPainter.FOREGROUND_MOUSEOVER, new Insets JavaDoc(3, 6, 5, 9), new Dimension JavaDoc(20, 12), true, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0));
758         d.put("Spinner:\"Spinner.previousButton\"[Pressed].foregroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.SpinnerSpinnerPreviousButtonPainter", SpinnerSpinnerPreviousButtonPainter.FOREGROUND_PRESSED, new Insets JavaDoc(3, 6, 5, 9), new Dimension JavaDoc(20, 12), true, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0));
759         d.put("Spinner:\"Spinner.nextButton\".contentMargins", new InsetsUIResource JavaDoc(0, 0, 0, 0));
760         d.put("Spinner:\"Spinner.nextButton\".size", new Integer JavaDoc(20));
761         d.put("Spinner:\"Spinner.nextButton\"[Disabled].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.SpinnerSpinnerNextButtonPainter", SpinnerSpinnerNextButtonPainter.BACKGROUND_DISABLED, new Insets JavaDoc(7, 1, 1, 7), new Dimension JavaDoc(20, 12), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0));
762         d.put("Spinner:\"Spinner.nextButton\"[Enabled].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.SpinnerSpinnerNextButtonPainter", SpinnerSpinnerNextButtonPainter.BACKGROUND_ENABLED, new Insets JavaDoc(7, 1, 1, 7), new Dimension JavaDoc(20, 12), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0));
763         d.put("Spinner:\"Spinner.nextButton\"[Focused].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.SpinnerSpinnerNextButtonPainter", SpinnerSpinnerNextButtonPainter.BACKGROUND_FOCUSED, new Insets JavaDoc(7, 1, 1, 7), new Dimension JavaDoc(20, 12), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0));
764         d.put("Spinner:\"Spinner.nextButton\"[Focused+MouseOver].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.SpinnerSpinnerNextButtonPainter", SpinnerSpinnerNextButtonPainter.BACKGROUND_MOUSEOVER_FOCUSED, new Insets JavaDoc(7, 1, 1, 7), new Dimension JavaDoc(20, 12), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0));
765         d.put("Spinner:\"Spinner.nextButton\"[Focused+Pressed].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.SpinnerSpinnerNextButtonPainter", SpinnerSpinnerNextButtonPainter.BACKGROUND_PRESSED_FOCUSED, new Insets JavaDoc(7, 1, 1, 7), new Dimension JavaDoc(20, 12), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0));
766         d.put("Spinner:\"Spinner.nextButton\"[MouseOver].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.SpinnerSpinnerNextButtonPainter", SpinnerSpinnerNextButtonPainter.BACKGROUND_MOUSEOVER, new Insets JavaDoc(7, 1, 1, 7), new Dimension JavaDoc(20, 12), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0));
767         d.put("Spinner:\"Spinner.nextButton\"[Pressed].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.SpinnerSpinnerNextButtonPainter", SpinnerSpinnerNextButtonPainter.BACKGROUND_PRESSED, new Insets JavaDoc(7, 1, 1, 7), new Dimension JavaDoc(20, 12), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0));
768         d.put("Spinner:\"Spinner.nextButton\"[Disabled].foregroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.SpinnerSpinnerNextButtonPainter", SpinnerSpinnerNextButtonPainter.FOREGROUND_DISABLED, new Insets JavaDoc(5, 6, 3, 9), new Dimension JavaDoc(20, 12), true, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0));
769         d.put("Spinner:\"Spinner.nextButton\"[Enabled].foregroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.SpinnerSpinnerNextButtonPainter", SpinnerSpinnerNextButtonPainter.FOREGROUND_ENABLED, new Insets JavaDoc(5, 6, 3, 9), new Dimension JavaDoc(20, 12), true, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0));
770         d.put("Spinner:\"Spinner.nextButton\"[Focused].foregroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.SpinnerSpinnerNextButtonPainter", SpinnerSpinnerNextButtonPainter.FOREGROUND_FOCUSED, new Insets JavaDoc(3, 6, 3, 9), new Dimension JavaDoc(20, 12), true, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0));
771         d.put("Spinner:\"Spinner.nextButton\"[Focused+MouseOver].foregroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.SpinnerSpinnerNextButtonPainter", SpinnerSpinnerNextButtonPainter.FOREGROUND_MOUSEOVER_FOCUSED, new Insets JavaDoc(3, 6, 3, 9), new Dimension JavaDoc(20, 12), true, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0));
772         d.put("Spinner:\"Spinner.nextButton\"[Focused+Pressed].foregroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.SpinnerSpinnerNextButtonPainter", SpinnerSpinnerNextButtonPainter.FOREGROUND_PRESSED_FOCUSED, new Insets JavaDoc(5, 6, 3, 9), new Dimension JavaDoc(20, 12), true, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0));
773         d.put("Spinner:\"Spinner.nextButton\"[MouseOver].foregroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.SpinnerSpinnerNextButtonPainter", SpinnerSpinnerNextButtonPainter.FOREGROUND_MOUSEOVER, new Insets JavaDoc(5, 6, 3, 9), new Dimension JavaDoc(20, 12), true, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0));
774         d.put("Spinner:\"Spinner.nextButton\"[Pressed].foregroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.SpinnerSpinnerNextButtonPainter", SpinnerSpinnerNextButtonPainter.FOREGROUND_PRESSED, new Insets JavaDoc(5, 6, 3, 9), new Dimension JavaDoc(20, 12), true, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0));
775
776         //Initialize SplitPane
777
d.put("SplitPane.contentMargins", new InsetsUIResource JavaDoc(1, 1, 1, 1));
778         d.put("SplitPane.States", "Enabled,MouseOver,Pressed,Disabled,Focused,Selected,Vertical");
779         d.put("SplitPane.Vertical", new SplitPaneVerticalState());
780         d.put("SplitPane.size", new Integer JavaDoc(10));
781         d.put("SplitPane.centerOneTouchButtons", Boolean.TRUE);
782         d.put("SplitPane.oneTouchButtonOffset", new Integer JavaDoc(30));
783         d.put("SplitPane.oneTouchExpandable", Boolean.FALSE);
784         d.put("SplitPane.continuousLayout", Boolean.TRUE);
785         d.put("SplitPane:SplitPaneDivider.contentMargins", new InsetsUIResource JavaDoc(0, 0, 0, 0));
786         d.put("SplitPane:SplitPaneDivider.States", "Enabled,MouseOver,Pressed,Disabled,Focused,Selected,Vertical");
787         d.put("SplitPane:SplitPaneDivider.Vertical", new SplitPaneSplitPaneDividerVerticalState());
788         d.put("SplitPane:SplitPaneDivider[Enabled].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.SplitPaneSplitPaneDividerPainter", SplitPaneSplitPaneDividerPainter.BACKGROUND_ENABLED, new Insets JavaDoc(3, 0, 3, 0), new Dimension JavaDoc(68, 10), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY));
789         d.put("SplitPane:SplitPaneDivider[Focused].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.SplitPaneSplitPaneDividerPainter", SplitPaneSplitPaneDividerPainter.BACKGROUND_FOCUSED, new Insets JavaDoc(3, 0, 3, 0), new Dimension JavaDoc(68, 10), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY));
790         d.put("SplitPane:SplitPaneDivider[Enabled].foregroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.SplitPaneSplitPaneDividerPainter", SplitPaneSplitPaneDividerPainter.FOREGROUND_ENABLED, new Insets JavaDoc(0, 24, 0, 24), new Dimension JavaDoc(68, 10), true, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY));
791         d.put("SplitPane:SplitPaneDivider[Enabled+Vertical].foregroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.SplitPaneSplitPaneDividerPainter", SplitPaneSplitPaneDividerPainter.FOREGROUND_ENABLED_VERTICAL, new Insets JavaDoc(5, 0, 5, 0), new Dimension JavaDoc(10, 38), true, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY));
792
793         //Initialize TabbedPane
794
d.put("TabbedPane.contentMargins", new InsetsUIResource JavaDoc(0, 0, 0, 0));
795         d.put("TabbedPane.tabAreaStatesMatchSelectedTab", Boolean.TRUE);
796         d.put("TabbedPane.nudgeSelectedLabel", Boolean.FALSE);
797         d.put("TabbedPane.tabRunOverlay", new Integer JavaDoc(2));
798         d.put("TabbedPane.tabOverlap", new Integer JavaDoc(-1));
799         d.put("TabbedPane.extendTabsToBase", Boolean.TRUE);
800         d.put("TabbedPane.useBasicArrows", Boolean.TRUE);
801         d.put("TabbedPane.shadow", getDerivedColor("nimbusDisabledText",0.0f,0.0f,0.0f,0));
802         d.put("TabbedPane.darkShadow", getDerivedColor("text",0.0f,0.0f,0.0f,0));
803         d.put("TabbedPane.highlight", getDerivedColor("nimbusLightBackground",0.0f,0.0f,0.0f,0));
804         d.put("TabbedPane:TabbedPaneTab.contentMargins", new InsetsUIResource JavaDoc(2, 8, 3, 8));
805         d.put("TabbedPane:TabbedPaneTab[Enabled].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.TabbedPaneTabbedPaneTabPainter", TabbedPaneTabbedPaneTabPainter.BACKGROUND_ENABLED, new Insets JavaDoc(7, 7, 1, 7), new Dimension JavaDoc(44, 20), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY));
806         d.put("TabbedPane:TabbedPaneTab[Enabled+MouseOver].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.TabbedPaneTabbedPaneTabPainter", TabbedPaneTabbedPaneTabPainter.BACKGROUND_ENABLED_MOUSEOVER, new Insets JavaDoc(7, 7, 1, 7), new Dimension JavaDoc(44, 20), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY));
807         d.put("TabbedPane:TabbedPaneTab[Enabled+Pressed].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.TabbedPaneTabbedPaneTabPainter", TabbedPaneTabbedPaneTabPainter.BACKGROUND_ENABLED_PRESSED, new Insets JavaDoc(7, 6, 1, 7), new Dimension JavaDoc(44, 20), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY));
808         d.put("TabbedPane:TabbedPaneTab[Disabled].textForeground", getDerivedColor("nimbusDisabledText",0.0f,0.0f,0.0f,0));
809         d.put("TabbedPane:TabbedPaneTab[Disabled].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.TabbedPaneTabbedPaneTabPainter", TabbedPaneTabbedPaneTabPainter.BACKGROUND_DISABLED, new Insets JavaDoc(6, 7, 1, 7), new Dimension JavaDoc(44, 20), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY));
810         d.put("TabbedPane:TabbedPaneTab[Disabled+Selected].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.TabbedPaneTabbedPaneTabPainter", TabbedPaneTabbedPaneTabPainter.BACKGROUND_SELECTED_DISABLED, new Insets JavaDoc(7, 7, 0, 7), new Dimension JavaDoc(44, 20), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY));
811         d.put("TabbedPane:TabbedPaneTab[Selected].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.TabbedPaneTabbedPaneTabPainter", TabbedPaneTabbedPaneTabPainter.BACKGROUND_SELECTED, new Insets JavaDoc(7, 7, 0, 7), new Dimension JavaDoc(44, 20), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY));
812         d.put("TabbedPane:TabbedPaneTab[MouseOver+Selected].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.TabbedPaneTabbedPaneTabPainter", TabbedPaneTabbedPaneTabPainter.BACKGROUND_SELECTED_MOUSEOVER, new Insets JavaDoc(7, 9, 0, 9), new Dimension JavaDoc(44, 20), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY));
813         d.put("TabbedPane:TabbedPaneTab[Pressed+Selected].textForeground", new ColorUIResource JavaDoc(new Color JavaDoc(255, 255, 255, 255)));
814         d.put("TabbedPane:TabbedPaneTab[Pressed+Selected].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.TabbedPaneTabbedPaneTabPainter", TabbedPaneTabbedPaneTabPainter.BACKGROUND_SELECTED_PRESSED, new Insets JavaDoc(7, 9, 0, 9), new Dimension JavaDoc(44, 20), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY));
815         d.put("TabbedPane:TabbedPaneTab[Focused+Selected].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.TabbedPaneTabbedPaneTabPainter", TabbedPaneTabbedPaneTabPainter.BACKGROUND_SELECTED_FOCUSED, new Insets JavaDoc(7, 7, 3, 7), new Dimension JavaDoc(44, 20), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY));
816         d.put("TabbedPane:TabbedPaneTab[Focused+MouseOver+Selected].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.TabbedPaneTabbedPaneTabPainter", TabbedPaneTabbedPaneTabPainter.BACKGROUND_SELECTED_MOUSEOVER_FOCUSED, new Insets JavaDoc(7, 9, 3, 9), new Dimension JavaDoc(44, 20), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY));
817         d.put("TabbedPane:TabbedPaneTab[Focused+Pressed+Selected].textForeground", new ColorUIResource JavaDoc(new Color JavaDoc(255, 255, 255, 255)));
818         d.put("TabbedPane:TabbedPaneTab[Focused+Pressed+Selected].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.TabbedPaneTabbedPaneTabPainter", TabbedPaneTabbedPaneTabPainter.BACKGROUND_SELECTED_PRESSED_FOCUSED, new Insets JavaDoc(7, 9, 3, 9), new Dimension JavaDoc(44, 20), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY));
819         d.put("TabbedPane:TabbedPaneTabArea.contentMargins", new InsetsUIResource JavaDoc(3, 10, 4, 10));
820         d.put("TabbedPane:TabbedPaneTabArea[Enabled].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.TabbedPaneTabbedPaneTabAreaPainter", TabbedPaneTabbedPaneTabAreaPainter.BACKGROUND_ENABLED, new Insets JavaDoc(0, 5, 6, 5), new Dimension JavaDoc(5, 24), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY));
821         d.put("TabbedPane:TabbedPaneTabArea[Disabled].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.TabbedPaneTabbedPaneTabAreaPainter", TabbedPaneTabbedPaneTabAreaPainter.BACKGROUND_DISABLED, new Insets JavaDoc(0, 5, 6, 5), new Dimension JavaDoc(5, 24), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY));
822         d.put("TabbedPane:TabbedPaneTabArea[Enabled+MouseOver].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.TabbedPaneTabbedPaneTabAreaPainter", TabbedPaneTabbedPaneTabAreaPainter.BACKGROUND_ENABLED_MOUSEOVER, new Insets JavaDoc(0, 5, 6, 5), new Dimension JavaDoc(5, 24), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY));
823         d.put("TabbedPane:TabbedPaneTabArea[Enabled+Pressed].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.TabbedPaneTabbedPaneTabAreaPainter", TabbedPaneTabbedPaneTabAreaPainter.BACKGROUND_ENABLED_PRESSED, new Insets JavaDoc(0, 5, 6, 5), new Dimension JavaDoc(5, 24), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY));
824         d.put("TabbedPane:TabbedPaneContent.contentMargins", new InsetsUIResource JavaDoc(0, 0, 0, 0));
825
826         //Initialize Table
827
d.put("Table.contentMargins", new InsetsUIResource JavaDoc(0, 0, 0, 0));
828         d.put("Table.opaque", Boolean.TRUE);
829         d.put("Table.textForeground", new ColorUIResource JavaDoc(new Color JavaDoc(35, 35, 36, 255)));
830         d.put("Table.background", getDerivedColor("nimbusLightBackground",0.0f,0.0f,0.0f,0));
831         d.put("Table.showGrid", Boolean.FALSE);
832         d.put("Table.intercellSpacing", new DimensionUIResource JavaDoc(0, 0));
833         d.put("Table.alternateRowColor", getDerivedColor("nimbusLightBackground",0.0f,0.0f,-0.05098039f,0,false));
834         d.put("Table.rendererUseTableColors", Boolean.TRUE);
835         d.put("Table.rendererUseUIBorder", Boolean.TRUE);
836         d.put("Table.cellNoFocusBorder", new BorderUIResource JavaDoc(BorderFactory.createEmptyBorder(2, 5, 2, 5)));
837         d.put("Table.focusCellHighlightBorder", new BorderUIResource JavaDoc(new PainterBorder("Tree:TreeCell[Enabled+Focused].backgroundPainter", new Insets JavaDoc(2, 5, 2, 5))));
838         d.put("Table[Enabled+Selected].textForeground", getDerivedColor("nimbusLightBackground",0.0f,0.0f,0.0f,0,false));
839         d.put("Table[Enabled+Selected].textBackground", getDerivedColor("nimbusSelectionBackground",0.0f,0.0f,0.0f,0,false));
840         d.put("Table[Disabled+Selected].textBackground", getDerivedColor("nimbusSelectionBackground",0.0f,0.0f,0.0f,0,false));
841         d.put("Table:\"Table.cellRenderer\".contentMargins", new InsetsUIResource JavaDoc(0, 0, 0, 0));
842         d.put("Table:\"Table.cellRenderer\".opaque", Boolean.TRUE);
843         d.put("Table:\"Table.cellRenderer\".background", getDerivedColor("nimbusLightBackground",0.0f,0.0f,0.0f,0,false));
844
845         //Initialize TableHeader
846
d.put("TableHeader.contentMargins", new InsetsUIResource JavaDoc(0, 0, 0, 0));
847         d.put("TableHeader.opaque", Boolean.TRUE);
848         d.put("TableHeader.rightAlignSortArrow", Boolean.TRUE);
849         d.put("TableHeader[Enabled].ascendingSortIconPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.TableHeaderPainter", TableHeaderPainter.ASCENDINGSORTICON_ENABLED, new Insets JavaDoc(0, 0, 0, 2), new Dimension JavaDoc(7, 7), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0));
850         d.put("Table.ascendingSortIcon", new NimbusIcon("TableHeader", "ascendingSortIconPainter", 7, 7));
851         d.put("TableHeader[Enabled].descendingSortIconPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.TableHeaderPainter", TableHeaderPainter.DESCENDINGSORTICON_ENABLED, new Insets JavaDoc(0, 0, 0, 0), new Dimension JavaDoc(7, 7), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0));
852         d.put("Table.descendingSortIcon", new NimbusIcon("TableHeader", "descendingSortIconPainter", 7, 7));
853         d.put("TableHeader:\"TableHeader.renderer\".contentMargins", new InsetsUIResource JavaDoc(2, 5, 4, 5));
854         d.put("TableHeader:\"TableHeader.renderer\".opaque", Boolean.TRUE);
855         d.put("TableHeader:\"TableHeader.renderer\".States", "Enabled,MouseOver,Pressed,Disabled,Focused,Selected,Sorted");
856         d.put("TableHeader:\"TableHeader.renderer\".Sorted", new TableHeaderTableHeaderRendererSortedState());
857         d.put("TableHeader:\"TableHeader.renderer\"[Disabled].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.TableHeaderTableHeaderRendererPainter", TableHeaderTableHeaderRendererPainter.BACKGROUND_DISABLED, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(22, 20), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY));
858         d.put("TableHeader:\"TableHeader.renderer\"[Enabled].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.TableHeaderTableHeaderRendererPainter", TableHeaderTableHeaderRendererPainter.BACKGROUND_ENABLED, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(22, 20), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY));
859         d.put("TableHeader:\"TableHeader.renderer\"[Enabled+Focused].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.TableHeaderTableHeaderRendererPainter", TableHeaderTableHeaderRendererPainter.BACKGROUND_ENABLED_FOCUSED, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(22, 20), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY));
860         d.put("TableHeader:\"TableHeader.renderer\"[MouseOver].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.TableHeaderTableHeaderRendererPainter", TableHeaderTableHeaderRendererPainter.BACKGROUND_MOUSEOVER, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(22, 20), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY));
861         d.put("TableHeader:\"TableHeader.renderer\"[Pressed].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.TableHeaderTableHeaderRendererPainter", TableHeaderTableHeaderRendererPainter.BACKGROUND_PRESSED, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(22, 20), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY));
862         d.put("TableHeader:\"TableHeader.renderer\"[Enabled+Sorted].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.TableHeaderTableHeaderRendererPainter", TableHeaderTableHeaderRendererPainter.BACKGROUND_ENABLED_SORTED, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(22, 20), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY));
863         d.put("TableHeader:\"TableHeader.renderer\"[Enabled+Focused+Sorted].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.TableHeaderTableHeaderRendererPainter", TableHeaderTableHeaderRendererPainter.BACKGROUND_ENABLED_FOCUSED_SORTED, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(22, 20), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY));
864         d.put("TableHeader:\"TableHeader.renderer\"[Disabled+Sorted].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.TableHeaderTableHeaderRendererPainter", TableHeaderTableHeaderRendererPainter.BACKGROUND_DISABLED_SORTED, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(22, 20), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY));
865
866         //Initialize \"Table.editor\"
867
d.put("\"Table.editor\".contentMargins", new InsetsUIResource JavaDoc(3, 5, 3, 5));
868         d.put("\"Table.editor\".opaque", Boolean.TRUE);
869         d.put("\"Table.editor\".background", getDerivedColor("nimbusLightBackground",0.0f,0.0f,0.0f,0));
870         d.put("\"Table.editor\"[Disabled].textForeground", getDerivedColor("nimbusDisabledText",0.0f,0.0f,0.0f,0));
871         d.put("\"Table.editor\"[Enabled].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.TableEditorPainter", TableEditorPainter.BACKGROUND_ENABLED, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(100, 30), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY));
872         d.put("\"Table.editor\"[Enabled+Focused].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.TableEditorPainter", TableEditorPainter.BACKGROUND_ENABLED_FOCUSED, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(100, 30), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY));
873         d.put("\"Table.editor\"[Selected].textForeground", getDerivedColor("nimbusSelectedText",0.0f,0.0f,0.0f,0));
874
875         //Initialize \"Tree.cellEditor\"
876
d.put("\"Tree.cellEditor\".contentMargins", new InsetsUIResource JavaDoc(2, 5, 2, 5));
877         d.put("\"Tree.cellEditor\".opaque", Boolean.TRUE);
878         d.put("\"Tree.cellEditor\".background", getDerivedColor("nimbusLightBackground",0.0f,0.0f,0.0f,0));
879         d.put("\"Tree.cellEditor\"[Disabled].textForeground", getDerivedColor("nimbusDisabledText",0.0f,0.0f,0.0f,0));
880         d.put("\"Tree.cellEditor\"[Enabled].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.TreeCellEditorPainter", TreeCellEditorPainter.BACKGROUND_ENABLED, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(100, 30), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY));
881         d.put("\"Tree.cellEditor\"[Enabled+Focused].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.TreeCellEditorPainter", TreeCellEditorPainter.BACKGROUND_ENABLED_FOCUSED, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(100, 30), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY));
882         d.put("\"Tree.cellEditor\"[Selected].textForeground", getDerivedColor("nimbusSelectedText",0.0f,0.0f,0.0f,0));
883
884         //Initialize TextField
885
d.put("TextField.contentMargins", new InsetsUIResource JavaDoc(6, 6, 6, 6));
886         d.put("TextField.background", getDerivedColor("nimbusLightBackground",0.0f,0.0f,0.0f,0));
887         d.put("TextField[Disabled].textForeground", getDerivedColor("nimbusDisabledText",0.0f,0.0f,0.0f,0));
888         d.put("TextField[Disabled].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.TextFieldPainter", TextFieldPainter.BACKGROUND_DISABLED, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(122, 24), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY));
889         d.put("TextField[Enabled].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.TextFieldPainter", TextFieldPainter.BACKGROUND_ENABLED, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(122, 24), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY));
890         d.put("TextField[Selected].textForeground", getDerivedColor("nimbusSelectedText",0.0f,0.0f,0.0f,0));
891         d.put("TextField[Selected].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.TextFieldPainter", TextFieldPainter.BACKGROUND_SELECTED, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(122, 24), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY));
892         d.put("TextField[Disabled].textForeground", getDerivedColor("nimbusDisabledText",0.0f,0.0f,0.0f,0));
893         d.put("TextField[Disabled].borderPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.TextFieldPainter", TextFieldPainter.BORDER_DISABLED, new Insets JavaDoc(5, 3, 3, 3), new Dimension JavaDoc(122, 24), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY));
894         d.put("TextField[Focused].borderPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.TextFieldPainter", TextFieldPainter.BORDER_FOCUSED, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(122, 24), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY));
895         d.put("TextField[Enabled].borderPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.TextFieldPainter", TextFieldPainter.BORDER_ENABLED, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(122, 24), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY));
896
897         //Initialize FormattedTextField
898
d.put("FormattedTextField.contentMargins", new InsetsUIResource JavaDoc(6, 6, 6, 6));
899         d.put("FormattedTextField[Disabled].textForeground", getDerivedColor("nimbusDisabledText",0.0f,0.0f,0.0f,0));
900         d.put("FormattedTextField[Disabled].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.FormattedTextFieldPainter", FormattedTextFieldPainter.BACKGROUND_DISABLED, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(122, 24), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY));
901         d.put("FormattedTextField[Enabled].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.FormattedTextFieldPainter", FormattedTextFieldPainter.BACKGROUND_ENABLED, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(122, 24), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY));
902         d.put("FormattedTextField[Selected].textForeground", getDerivedColor("nimbusSelectedText",0.0f,0.0f,0.0f,0));
903         d.put("FormattedTextField[Selected].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.FormattedTextFieldPainter", FormattedTextFieldPainter.BACKGROUND_SELECTED, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(122, 24), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY));
904         d.put("FormattedTextField[Disabled].textForeground", getDerivedColor("nimbusDisabledText",0.0f,0.0f,0.0f,0));
905         d.put("FormattedTextField[Disabled].borderPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.FormattedTextFieldPainter", FormattedTextFieldPainter.BORDER_DISABLED, new Insets JavaDoc(5, 3, 3, 3), new Dimension JavaDoc(122, 24), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY));
906         d.put("FormattedTextField[Focused].borderPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.FormattedTextFieldPainter", FormattedTextFieldPainter.BORDER_FOCUSED, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(122, 24), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY));
907         d.put("FormattedTextField[Enabled].borderPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.FormattedTextFieldPainter", FormattedTextFieldPainter.BORDER_ENABLED, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(122, 24), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY));
908
909         //Initialize PasswordField
910
d.put("PasswordField.contentMargins", new InsetsUIResource JavaDoc(6, 6, 6, 6));
911         d.put("PasswordField[Disabled].textForeground", getDerivedColor("nimbusDisabledText",0.0f,0.0f,0.0f,0));
912         d.put("PasswordField[Disabled].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.PasswordFieldPainter", PasswordFieldPainter.BACKGROUND_DISABLED, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(122, 24), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY));
913         d.put("PasswordField[Enabled].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.PasswordFieldPainter", PasswordFieldPainter.BACKGROUND_ENABLED, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(122, 24), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY));
914         d.put("PasswordField[Selected].textForeground", getDerivedColor("nimbusSelectedText",0.0f,0.0f,0.0f,0));
915         d.put("PasswordField[Selected].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.PasswordFieldPainter", PasswordFieldPainter.BACKGROUND_SELECTED, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(122, 24), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY));
916         d.put("PasswordField[Disabled].textForeground", getDerivedColor("nimbusDisabledText",0.0f,0.0f,0.0f,0));
917         d.put("PasswordField[Disabled].borderPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.PasswordFieldPainter", PasswordFieldPainter.BORDER_DISABLED, new Insets JavaDoc(5, 3, 3, 3), new Dimension JavaDoc(122, 24), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY));
918         d.put("PasswordField[Focused].borderPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.PasswordFieldPainter", PasswordFieldPainter.BORDER_FOCUSED, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(122, 24), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY));
919         d.put("PasswordField[Enabled].borderPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.PasswordFieldPainter", PasswordFieldPainter.BORDER_ENABLED, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(122, 24), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY));
920
921         //Initialize TextArea
922
d.put("TextArea.contentMargins", new InsetsUIResource JavaDoc(6, 6, 6, 6));
923         d.put("TextArea.States", "Enabled,MouseOver,Pressed,Selected,Disabled,Focused,NotInScrollPane");
924         d.put("TextArea.NotInScrollPane", new TextAreaNotInScrollPaneState());
925         d.put("TextArea[Disabled].textForeground", getDerivedColor("nimbusDisabledText",0.0f,0.0f,0.0f,0));
926         d.put("TextArea[Disabled].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.TextAreaPainter", TextAreaPainter.BACKGROUND_DISABLED, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(122, 24), false, AbstractRegionPainter.PaintContext.CacheMode.NO_CACHING, 1.0, 1.0));
927         d.put("TextArea[Enabled].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.TextAreaPainter", TextAreaPainter.BACKGROUND_ENABLED, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(122, 24), false, AbstractRegionPainter.PaintContext.CacheMode.NO_CACHING, 1.0, 1.0));
928         d.put("TextArea[Disabled+NotInScrollPane].textForeground", getDerivedColor("nimbusDisabledText",0.0f,0.0f,0.0f,0));
929         d.put("TextArea[Disabled+NotInScrollPane].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.TextAreaPainter", TextAreaPainter.BACKGROUND_DISABLED_NOTINSCROLLPANE, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(122, 24), false, AbstractRegionPainter.PaintContext.CacheMode.NO_CACHING, 1.0, 1.0));
930         d.put("TextArea[Enabled+NotInScrollPane].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.TextAreaPainter", TextAreaPainter.BACKGROUND_ENABLED_NOTINSCROLLPANE, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(122, 24), false, AbstractRegionPainter.PaintContext.CacheMode.NO_CACHING, 1.0, 1.0));
931         d.put("TextArea[Selected].textForeground", getDerivedColor("nimbusSelectedText",0.0f,0.0f,0.0f,0));
932         d.put("TextArea[Selected].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.TextAreaPainter", TextAreaPainter.BACKGROUND_SELECTED, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(122, 24), false, AbstractRegionPainter.PaintContext.CacheMode.NO_CACHING, 1.0, 1.0));
933         d.put("TextArea[Disabled+NotInScrollPane].textForeground", getDerivedColor("nimbusDisabledText",0.0f,0.0f,0.0f,0));
934         d.put("TextArea[Disabled+NotInScrollPane].borderPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.TextAreaPainter", TextAreaPainter.BORDER_DISABLED_NOTINSCROLLPANE, new Insets JavaDoc(5, 3, 3, 3), new Dimension JavaDoc(122, 24), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY));
935         d.put("TextArea[Focused+NotInScrollPane].borderPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.TextAreaPainter", TextAreaPainter.BORDER_FOCUSED_NOTINSCROLLPANE, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(122, 24), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY));
936         d.put("TextArea[Enabled+NotInScrollPane].borderPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.TextAreaPainter", TextAreaPainter.BORDER_ENABLED_NOTINSCROLLPANE, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(122, 24), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY));
937
938         //Initialize TextPane
939
d.put("TextPane.contentMargins", new InsetsUIResource JavaDoc(4, 6, 4, 6));
940         d.put("TextPane.opaque", Boolean.TRUE);
941         d.put("TextPane[Disabled].textForeground", getDerivedColor("nimbusDisabledText",0.0f,0.0f,0.0f,0));
942         d.put("TextPane[Disabled].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.TextPanePainter", TextPanePainter.BACKGROUND_DISABLED, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(100, 30), false, AbstractRegionPainter.PaintContext.CacheMode.NO_CACHING, 1.0, 1.0));
943         d.put("TextPane[Enabled].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.TextPanePainter", TextPanePainter.BACKGROUND_ENABLED, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(100, 30), false, AbstractRegionPainter.PaintContext.CacheMode.NO_CACHING, 1.0, 1.0));
944         d.put("TextPane[Selected].textForeground", getDerivedColor("nimbusSelectedText",0.0f,0.0f,0.0f,0));
945         d.put("TextPane[Selected].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.TextPanePainter", TextPanePainter.BACKGROUND_SELECTED, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(100, 30), false, AbstractRegionPainter.PaintContext.CacheMode.NO_CACHING, 1.0, 1.0));
946
947         //Initialize EditorPane
948
d.put("EditorPane.contentMargins", new InsetsUIResource JavaDoc(4, 6, 4, 6));
949         d.put("EditorPane.opaque", Boolean.TRUE);
950         d.put("EditorPane[Disabled].textForeground", getDerivedColor("nimbusDisabledText",0.0f,0.0f,0.0f,0));
951         d.put("EditorPane[Disabled].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.EditorPanePainter", EditorPanePainter.BACKGROUND_DISABLED, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(100, 30), false, AbstractRegionPainter.PaintContext.CacheMode.NO_CACHING, 1.0, 1.0));
952         d.put("EditorPane[Enabled].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.EditorPanePainter", EditorPanePainter.BACKGROUND_ENABLED, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(100, 30), false, AbstractRegionPainter.PaintContext.CacheMode.NO_CACHING, 1.0, 1.0));
953         d.put("EditorPane[Selected].textForeground", getDerivedColor("nimbusSelectedText",0.0f,0.0f,0.0f,0));
954         d.put("EditorPane[Selected].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.EditorPanePainter", EditorPanePainter.BACKGROUND_SELECTED, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(100, 30), false, AbstractRegionPainter.PaintContext.CacheMode.NO_CACHING, 1.0, 1.0));
955
956         //Initialize ToolBar
957
d.put("ToolBar.contentMargins", new InsetsUIResource JavaDoc(0, 0, 1, 0));
958         d.put("ToolBar.opaque", Boolean.TRUE);
959         d.put("ToolBar[Enabled].borderPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.ToolBarPainter", ToolBarPainter.BORDER_ENABLED, new Insets JavaDoc(0, 0, 1, 0), new Dimension JavaDoc(30, 30), false, AbstractRegionPainter.PaintContext.CacheMode.NO_CACHING, 1.0, 1.0));
960         d.put("ToolBar[Enabled].handleIconPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.ToolBarPainter", ToolBarPainter.HANDLEICON_ENABLED, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(11, 38), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, 2.0, Double.POSITIVE_INFINITY));
961         d.put("ToolBar.handleIcon", new NimbusIcon("ToolBar", "handleIconPainter", 11, 38));
962         d.put("ToolBar:Button.contentMargins", new InsetsUIResource JavaDoc(4, 4, 4, 4));
963         d.put("ToolBar:Button[Focused].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.ToolBarButtonPainter", ToolBarButtonPainter.BACKGROUND_FOCUSED, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(104, 33), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, 2.0, Double.POSITIVE_INFINITY));
964         d.put("ToolBar:Button[MouseOver].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.ToolBarButtonPainter", ToolBarButtonPainter.BACKGROUND_MOUSEOVER, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(104, 33), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, 2.0, Double.POSITIVE_INFINITY));
965         d.put("ToolBar:Button[Focused+MouseOver].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.ToolBarButtonPainter", ToolBarButtonPainter.BACKGROUND_MOUSEOVER_FOCUSED, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(104, 33), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, 2.0, Double.POSITIVE_INFINITY));
966         d.put("ToolBar:Button[Pressed].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.ToolBarButtonPainter", ToolBarButtonPainter.BACKGROUND_PRESSED, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(104, 33), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, 2.0, Double.POSITIVE_INFINITY));
967         d.put("ToolBar:Button[Focused+Pressed].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.ToolBarButtonPainter", ToolBarButtonPainter.BACKGROUND_PRESSED_FOCUSED, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(104, 33), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, 2.0, Double.POSITIVE_INFINITY));
968         d.put("ToolBar:ToggleButton.contentMargins", new InsetsUIResource JavaDoc(4, 4, 4, 4));
969         d.put("ToolBar:ToggleButton[Focused].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.ToolBarToggleButtonPainter", ToolBarToggleButtonPainter.BACKGROUND_FOCUSED, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(104, 34), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, 2.0, Double.POSITIVE_INFINITY));
970         d.put("ToolBar:ToggleButton[MouseOver].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.ToolBarToggleButtonPainter", ToolBarToggleButtonPainter.BACKGROUND_MOUSEOVER, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(104, 34), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, 2.0, Double.POSITIVE_INFINITY));
971         d.put("ToolBar:ToggleButton[Focused+MouseOver].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.ToolBarToggleButtonPainter", ToolBarToggleButtonPainter.BACKGROUND_MOUSEOVER_FOCUSED, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(104, 34), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, 2.0, Double.POSITIVE_INFINITY));
972         d.put("ToolBar:ToggleButton[Pressed].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.ToolBarToggleButtonPainter", ToolBarToggleButtonPainter.BACKGROUND_PRESSED, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(72, 25), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, 2.0, Double.POSITIVE_INFINITY));
973         d.put("ToolBar:ToggleButton[Focused+Pressed].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.ToolBarToggleButtonPainter", ToolBarToggleButtonPainter.BACKGROUND_PRESSED_FOCUSED, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(72, 25), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, 2.0, Double.POSITIVE_INFINITY));
974         d.put("ToolBar:ToggleButton[Selected].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.ToolBarToggleButtonPainter", ToolBarToggleButtonPainter.BACKGROUND_SELECTED, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(72, 25), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, 2.0, Double.POSITIVE_INFINITY));
975         d.put("ToolBar:ToggleButton[Focused+Selected].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.ToolBarToggleButtonPainter", ToolBarToggleButtonPainter.BACKGROUND_SELECTED_FOCUSED, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(72, 25), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, 2.0, Double.POSITIVE_INFINITY));
976         d.put("ToolBar:ToggleButton[Pressed+Selected].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.ToolBarToggleButtonPainter", ToolBarToggleButtonPainter.BACKGROUND_PRESSED_SELECTED, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(72, 25), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, 2.0, Double.POSITIVE_INFINITY));
977         d.put("ToolBar:ToggleButton[Focused+Pressed+Selected].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.ToolBarToggleButtonPainter", ToolBarToggleButtonPainter.BACKGROUND_PRESSED_SELECTED_FOCUSED, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(72, 25), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, 2.0, Double.POSITIVE_INFINITY));
978         d.put("ToolBar:ToggleButton[MouseOver+Selected].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.ToolBarToggleButtonPainter", ToolBarToggleButtonPainter.BACKGROUND_MOUSEOVER_SELECTED, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(72, 25), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, 2.0, Double.POSITIVE_INFINITY));
979         d.put("ToolBar:ToggleButton[Focused+MouseOver+Selected].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.ToolBarToggleButtonPainter", ToolBarToggleButtonPainter.BACKGROUND_MOUSEOVER_SELECTED_FOCUSED, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(72, 25), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, 2.0, Double.POSITIVE_INFINITY));
980         d.put("ToolBar:ToggleButton[Disabled+Selected].textForeground", getDerivedColor("nimbusDisabledText",0.0f,0.0f,0.0f,0));
981         d.put("ToolBar:ToggleButton[Disabled+Selected].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.ToolBarToggleButtonPainter", ToolBarToggleButtonPainter.BACKGROUND_DISABLED_SELECTED, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(72, 25), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, 2.0, Double.POSITIVE_INFINITY));
982
983         //Initialize ToolBarSeparator
984
d.put("ToolBarSeparator.contentMargins", new InsetsUIResource JavaDoc(2, 0, 3, 0));
985         d.put("ToolBarSeparator[Enabled].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.ToolBarSeparatorPainter", ToolBarSeparatorPainter.BACKGROUND_ENABLED, new Insets JavaDoc(1, 0, 1, 0), new Dimension JavaDoc(38, 7), true, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY));
986
987         //Initialize ToolTip
988
d.put("ToolTip.contentMargins", new InsetsUIResource JavaDoc(4, 4, 4, 4));
989         d.put("ToolTip[Enabled].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.ToolTipPainter", ToolTipPainter.BACKGROUND_ENABLED, new Insets JavaDoc(1, 1, 1, 1), new Dimension JavaDoc(10, 10), false, AbstractRegionPainter.PaintContext.CacheMode.NO_CACHING, 1.0, 1.0));
990
991         //Initialize Tree
992
d.put("Tree.contentMargins", new InsetsUIResource JavaDoc(0, 0, 0, 0));
993         d.put("Tree.opaque", Boolean.TRUE);
994         d.put("Tree.textForeground", getDerivedColor("text",0.0f,0.0f,0.0f,0,false));
995         d.put("Tree.textBackground", getDerivedColor("nimbusLightBackground",0.0f,0.0f,0.0f,0,false));
996         d.put("Tree.background", getDerivedColor("nimbusLightBackground",0.0f,0.0f,0.0f,0));
997         d.put("Tree.rendererFillBackground", Boolean.FALSE);
998         d.put("Tree.leftChildIndent", new Integer JavaDoc(12));
999         d.put("Tree.rightChildIndent", new Integer JavaDoc(4));
1000        d.put("Tree.drawHorizontalLines", Boolean.FALSE);
1001        d.put("Tree.drawVerticalLines", Boolean.FALSE);
1002        d.put("Tree.showRootHandles", Boolean.FALSE);
1003        d.put("Tree.rendererUseTreeColors", Boolean.TRUE);
1004        d.put("Tree.repaintWholeRow", Boolean.TRUE);
1005        d.put("Tree.rowHeight", new Integer JavaDoc(0));
1006        d.put("Tree.rendererMargins", new InsetsUIResource JavaDoc(2, 0, 1, 5));
1007        d.put("Tree.selectionForeground", getDerivedColor("nimbusSelectedText",0.0f,0.0f,0.0f,0,false));
1008        d.put("Tree.selectionBackground", getDerivedColor("nimbusSelectionBackground",0.0f,0.0f,0.0f,0,false));
1009        d.put("Tree:TreeCell.contentMargins", new InsetsUIResource JavaDoc(0, 0, 0, 0));
1010        d.put("Tree:TreeCell[Enabled].background", getDerivedColor("nimbusLightBackground",0.0f,0.0f,0.0f,0));
1011        d.put("Tree:TreeCell[Enabled+Focused].background", getDerivedColor("nimbusLightBackground",0.0f,0.0f,0.0f,0));
1012        d.put("Tree:TreeCell[Enabled+Focused].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.TreeTreeCellPainter", TreeTreeCellPainter.BACKGROUND_ENABLED_FOCUSED, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(100, 30), false, AbstractRegionPainter.PaintContext.CacheMode.NO_CACHING, 1.0, 1.0));
1013        d.put("Tree:TreeCell[Enabled+Selected].textForeground", new ColorUIResource JavaDoc(new Color JavaDoc(255, 255, 255, 255)));
1014        d.put("Tree:TreeCell[Enabled+Selected].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.TreeTreeCellPainter", TreeTreeCellPainter.BACKGROUND_ENABLED_SELECTED, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(100, 30), false, AbstractRegionPainter.PaintContext.CacheMode.NO_CACHING, 1.0, 1.0));
1015        d.put("Tree:TreeCell[Focused+Selected].textForeground", new ColorUIResource JavaDoc(new Color JavaDoc(255, 255, 255, 255)));
1016        d.put("Tree:TreeCell[Focused+Selected].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.TreeTreeCellPainter", TreeTreeCellPainter.BACKGROUND_SELECTED_FOCUSED, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(100, 30), false, AbstractRegionPainter.PaintContext.CacheMode.NO_CACHING, 1.0, 1.0));
1017        d.put("Tree:\"Tree.cellRenderer\".contentMargins", new InsetsUIResource JavaDoc(0, 0, 0, 0));
1018        d.put("Tree:\"Tree.cellRenderer\"[Disabled].textForeground", getDerivedColor("nimbusDisabledText",0.0f,0.0f,0.0f,0));
1019        d.put("Tree[Enabled].leafIconPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.TreePainter", TreePainter.LEAFICON_ENABLED, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(16, 16), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0));
1020        d.put("Tree.leafIcon", new NimbusIcon("Tree", "leafIconPainter", 16, 16));
1021        d.put("Tree[Enabled].closedIconPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.TreePainter", TreePainter.CLOSEDICON_ENABLED, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(16, 16), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0));
1022        d.put("Tree.closedIcon", new NimbusIcon("Tree", "closedIconPainter", 16, 16));
1023        d.put("Tree[Enabled].openIconPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.TreePainter", TreePainter.OPENICON_ENABLED, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(16, 16), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0));
1024        d.put("Tree.openIcon", new NimbusIcon("Tree", "openIconPainter", 16, 16));
1025        d.put("Tree[Enabled].collapsedIconPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.TreePainter", TreePainter.COLLAPSEDICON_ENABLED, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(18, 7), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0));
1026        d.put("Tree[Enabled+Selected].collapsedIconPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.TreePainter", TreePainter.COLLAPSEDICON_ENABLED_SELECTED, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(18, 7), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0));
1027        d.put("Tree.collapsedIcon", new NimbusIcon("Tree", "collapsedIconPainter", 18, 7));
1028        d.put("Tree[Enabled].expandedIconPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.TreePainter", TreePainter.EXPANDEDICON_ENABLED, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(18, 7), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0));
1029        d.put("Tree[Enabled+Selected].expandedIconPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.TreePainter", TreePainter.EXPANDEDICON_ENABLED_SELECTED, new Insets JavaDoc(5, 5, 5, 5), new Dimension JavaDoc(18, 7), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0));
1030        d.put("Tree.expandedIcon", new NimbusIcon("Tree", "expandedIconPainter", 18, 7));
1031
1032        //Initialize RootPane
1033
d.put("RootPane.contentMargins", new InsetsUIResource JavaDoc(0, 0, 0, 0));
1034        d.put("RootPane.opaque", Boolean.TRUE);
1035        d.put("RootPane.background", getDerivedColor("control",0.0f,0.0f,0.0f,0));
1036
1037
1038    }
1039
1040    /**
1041     * <p>Registers the given region and prefix. The prefix, if it contains
1042     * quoted sections, refers to certain named components. If there are not
1043     * quoted sections, then the prefix refers to a generic component type.</p>
1044     *
1045     * <p>If the given region/prefix combo has already been registered, then
1046     * it will not be registered twice. The second registration attempt will
1047     * fail silently.</p>
1048     *
1049     * @param region The Synth Region that is being registered. Such as Button,
1050     * or ScrollBarThumb.
1051     * @param prefix The UIDefault prefix. For example, could be ComboBox, or if
1052     * a named components, "MyComboBox", or even something like
1053     * ToolBar:"MyComboBox":"ComboBox.arrowButton"
1054     */

1055    void register(Region JavaDoc region, String JavaDoc prefix) {
1056        //validate the method arguments
1057
if (region == null || prefix == null) {
1058            throw new IllegalArgumentException JavaDoc(
1059                    "Neither Region nor Prefix may be null");
1060        }
1061
1062        //Add a LazyStyle for this region/prefix to m.
1063
List JavaDoc<LazyStyle> styles = m.get(region);
1064        if (styles == null) {
1065            styles = new LinkedList JavaDoc<LazyStyle>();
1066            styles.add(new LazyStyle(prefix));
1067            m.put(region, styles);
1068        } else {
1069            //iterate over all the current styles and see if this prefix has
1070
//already been registered. If not, then register it.
1071
for (LazyStyle s : styles) {
1072                if (prefix.equals(s.prefix)) {
1073                    return;
1074                }
1075            }
1076            styles.add(new LazyStyle(prefix));
1077        }
1078
1079        //add this region to the map of registered regions
1080
registeredRegions.put(region.getName(), region);
1081    }
1082
1083    /**
1084     * <p>Locate the style associated with the given region, and component.
1085     * This is called from NimbusLookAndFeel in the SynthStyleFactory
1086     * implementation.</p>
1087     *
1088     * <p>Lookup occurs as follows:<br/>
1089     * Check the map of styles <code>m</code>. If the map contains no styles at
1090     * all, then simply return the defaultStyle. If the map contains styles,
1091     * then iterate over all of the styles for the Region <code>r</code> looking
1092     * for the best match, based on prefix. If a match was made, then return
1093     * that SynthStyle. Otherwise, return the defaultStyle.</p>
1094     *
1095     * @param comp The component associated with this region. For example, if
1096     * the Region is Region.Button then the component will be a JButton.
1097     * If the Region is a subregion, such as ScrollBarThumb, then the
1098     * associated component will be the component that subregion belongs
1099     * to, such as JScrollBar. The JComponent may be named. It may not be
1100     * null.
1101     * @param r The region we are looking for a style for. May not be null.
1102     */

1103    SynthStyle getStyle(JComponent JavaDoc comp, Region JavaDoc r) {
1104        //validate method arguments
1105
if (comp == null || r == null) {
1106            throw new IllegalArgumentException JavaDoc(
1107                    "Neither comp nor r may be null");
1108        }
1109
1110        //if there are no lazy styles registered for the region r, then return
1111
//the default style
1112
List JavaDoc<LazyStyle> styles = m.get(r);
1113        if (styles == null || styles.size() == 0) {
1114            return defaultStyle;
1115        }
1116
1117        //Look for the best SynthStyle for this component/region pair.
1118
LazyStyle foundStyle = null;
1119        for (LazyStyle s : styles) {
1120            if (s.matches(comp)) {
1121                //replace the foundStyle if foundStyle is null, or
1122
//if the new style "s" is more specific (ie, its path was
1123
//longer), or if the foundStyle was "simple" and the new style
1124
//was not (ie: the foundStyle was for something like Button and
1125
//the new style was for something like "MyButton", hence, being
1126
//more specific.) In all cases, favor the most specific style
1127
//found.
1128
if (foundStyle == null ||
1129                   (foundStyle.parts.length < s.parts.length) ||
1130                   (foundStyle.parts.length == s.parts.length
1131                    && foundStyle.simple && !s.simple)) {
1132                    foundStyle = s;
1133                }
1134            }
1135        }
1136
1137        //return the style, if found, or the default style if not found
1138
return foundStyle == null ? defaultStyle : foundStyle.getStyle();
1139    }
1140
1141    /**
1142     * Clears all styles from the cache, such that subsequent calls to getStyle
1143     * will return a new instance.
1144     */

1145    private void clearStyleCache() {
1146        for (List JavaDoc<LazyStyle> styles : m.values()) {
1147            for (LazyStyle s : styles) {
1148                s.style = null;
1149            }
1150        }
1151    }
1152
1153    /*
1154        Various public helper classes.
1155        These may be used to register 3rd party values into UIDefaults
1156    */

1157
1158    /**
1159     * <p>Derives its font value based on a parent font and a set of offsets and
1160     * attributes. This class is an ActiveValue, meaning that it will recompute
1161     * its value each time it is requested from UIDefaults. It is therefore
1162     * recommended to read this value once and cache it in the UI delegate class
1163     * until asked to reinitialize.</p>
1164     *
1165     * <p>To use this class, create an instance with the key of the font in the
1166     * UI defaults table from which to derive this font, along with a size
1167     * offset (if any), and whether it is to be bold, italic, or left in its
1168     * default form.</p>
1169     */

1170    public static final class DerivedFont implements UIDefaults.ActiveValue JavaDoc {
1171        private float sizeOffset;
1172        private Boolean JavaDoc bold;
1173        private Boolean JavaDoc italic;
1174        private String JavaDoc parentKey;
1175
1176        /**
1177         * Create a new DerivedFont.
1178         *
1179         * @param key The UIDefault key associated with this derived font's
1180         * parent or source. If this key leads to a null value, or a
1181         * value that is not a font, then null will be returned as
1182         * the derived font. The key must not be null.
1183         * @param sizeOffset The size offset, as a percentage, to use. For
1184         * example, if the source font was a 12pt font and the
1185         * sizeOffset were specified as .9, then the new font
1186         * will be 90% of what the source font was, or, 10.8
1187         * pts which is rounded to 11pts. This fractional
1188         * based offset allows for proper font scaling in high
1189         * DPI or large system font scenarios.
1190         * @param bold Whether the new font should be bold. If null, then this
1191         * new font will inherit the bold setting of the source
1192         * font.
1193         * @param italic Whether the new font should be italicized. If null,
1194         * then this new font will inherit the italic setting of
1195         * the source font.
1196         */

1197        public DerivedFont(String JavaDoc key, float sizeOffset, Boolean JavaDoc bold,
1198                           Boolean JavaDoc italic) {
1199            //validate the constructor arguments
1200
if (key == null) {
1201                throw new IllegalArgumentException JavaDoc("You must specify a key");
1202            }
1203
1204            //set the values
1205
this.parentKey = key;
1206            this.sizeOffset = sizeOffset;
1207            this.bold = bold;
1208            this.italic = italic;
1209        }
1210
1211        /**
1212         * @inheritDoc
1213         */

1214        public Object JavaDoc createValue(UIDefaults JavaDoc defaults) {
1215            Font JavaDoc f = defaults.getFont(parentKey);
1216            if (f != null) {
1217                // always round size for now so we have exact int font size
1218
// (or we may have lame looking fonts)
1219
float size = Math.round(f.getSize2D() * sizeOffset);
1220                int style = f.getStyle();
1221                if (bold != null) {
1222                    if (bold.booleanValue()) {
1223                        style = style | Font.BOLD;
1224                    } else {
1225                        style = style & ~Font.BOLD;
1226                    }
1227                }
1228                if (italic != null) {
1229                    if (italic.booleanValue()) {
1230                        style = style | Font.ITALIC;
1231                    } else {
1232                        style = style & ~Font.ITALIC;
1233                    }
1234                }
1235                return f.deriveFont(style, size);
1236            } else {
1237                return null;
1238            }
1239        }
1240    }
1241
1242
1243    /**
1244     * This class is private because it relies on the constructor of the
1245     * auto-generated AbstractRegionPainter subclasses. Hence, it is not
1246     * generally useful, and is private.
1247     * <p/>
1248     * LazyPainter is a LazyValue class. It will create the
1249     * AbstractRegionPainter lazily, when asked. It uses reflection to load the
1250     * proper class and invoke its constructor.
1251     */

1252    private static final class LazyPainter implements UIDefaults.LazyValue JavaDoc {
1253        private int which;
1254        private AbstractRegionPainter.PaintContext ctx;
1255        private String JavaDoc className;
1256
1257        LazyPainter(String JavaDoc className, int which, Insets JavaDoc insets,
1258                    Dimension JavaDoc canvasSize, boolean inverted) {
1259            if (className == null) {
1260                throw new IllegalArgumentException JavaDoc(
1261                        "The className must be specified");
1262            }
1263
1264            this.className = className;
1265            this.which = which;
1266            this.ctx = new AbstractRegionPainter.PaintContext(
1267                insets, canvasSize, inverted);
1268        }
1269
1270        LazyPainter(String JavaDoc className, int which, Insets JavaDoc insets,
1271                    Dimension JavaDoc canvasSize, boolean inverted,
1272                    AbstractRegionPainter.PaintContext.CacheMode cacheMode,
1273                    double maxH, double maxV) {
1274            if (className == null) {
1275                throw new IllegalArgumentException JavaDoc(
1276                        "The className must be specified");
1277            }
1278
1279            this.className = className;
1280            this.which = which;
1281            this.ctx = new AbstractRegionPainter.PaintContext(
1282                    insets, canvasSize, inverted, cacheMode, maxH, maxV);
1283        }
1284
1285        public Object JavaDoc createValue(UIDefaults JavaDoc table) {
1286            try {
1287                Class JavaDoc c;
1288                Object JavaDoc cl;
1289                // See if we should use a separate ClassLoader
1290
if (table == null || !((cl = table.get("ClassLoader"))
1291                                       instanceof ClassLoader JavaDoc)) {
1292                    cl = Thread.currentThread().
1293                                getContextClassLoader();
1294                    if (cl == null) {
1295                        // Fallback to the system class loader.
1296
cl = ClassLoader.getSystemClassLoader();
1297                    }
1298                }
1299
1300                c = Class.forName(className, true, (ClassLoader JavaDoc)cl);
1301                Constructor JavaDoc constructor = c.getConstructor(
1302                        AbstractRegionPainter.PaintContext.class, int.class);
1303                if (constructor == null) {
1304                    throw new NullPointerException JavaDoc(
1305                            "Failed to find the constructor for the class: " +
1306                            className);
1307                }
1308                return constructor.newInstance(ctx, which);
1309            } catch (Exception JavaDoc e) {
1310                e.printStackTrace();
1311                return null;
1312            }
1313        }
1314    }
1315
1316    /**
1317     * A class which creates the NimbusStyle associated with it lazily, but also
1318     * manages a lot more information about the style. It is less of a LazyValue
1319     * type of class, and more of an Entry or Item type of class, as it
1320     * represents an entry in the list of LazyStyles in the map m.
1321     *
1322     * The primary responsibilities of this class include:
1323     * <ul>
1324     * <li>Determining whether a given component/region pair matches this
1325     * style</li>
1326     * <li>Splitting the prefix specified in the constructor into its
1327     * constituent parts to facilitate quicker matching</li>
1328     * <li>Creating and vending a NimbusStyle lazily.</li>
1329     * </ul>
1330     */

1331    private final class LazyStyle {
1332        /**
1333         * The prefix this LazyStyle was registered with. Something like
1334         * Button or ComboBox:"ComboBox.arrowButton"
1335         */

1336        private String JavaDoc prefix;
1337        /**
1338         * Whether or not this LazyStyle represents an unnamed component
1339         */

1340        private boolean simple = true;
1341        /**
1342         * The various parts, or sections, of the prefix. For example,
1343         * the prefix:
1344         * ComboBox:"ComboBox.arrowButton"
1345         *
1346         * will be broken into two parts,
1347         * ComboBox and "ComboBox.arrowButton"
1348         */

1349        private Part[] parts;
1350        /**
1351         * Cached shared style.
1352         */

1353        private NimbusStyle style;
1354
1355        /**
1356         * Create a new LazyStyle.
1357         *
1358         * @param prefix The prefix associated with this style. Cannot be null.
1359         */

1360        private LazyStyle(String JavaDoc prefix) {
1361            if (prefix == null) {
1362                throw new IllegalArgumentException JavaDoc(
1363                        "The prefix must not be null");
1364            }
1365
1366            this.prefix = prefix;
1367
1368            //there is one odd case that needs to be supported here: cell
1369
//renderers. A cell renderer is defined as a named internal
1370
//component, so for example:
1371
// List."List.cellRenderer"
1372
//The problem is that the component named List.cellRenderer is not a
1373
//child of a JList. Rather, it is treated more as a direct component
1374
//Thus, if the prefix ends with "cellRenderer", then remove all the
1375
//previous dotted parts of the prefix name so that it becomes, for
1376
//example: "List.cellRenderer"
1377
//Likewise, we have a hacked work around for cellRenderer, renderer,
1378
//and listRenderer.
1379
String JavaDoc temp = prefix;
1380            if (temp.endsWith("cellRenderer\"")
1381                    || temp.endsWith("renderer\"")
1382                    || temp.endsWith("listRenderer\"")) {
1383                temp = temp.substring(temp.lastIndexOf(":\"") + 1);
1384            }
1385
1386            //otherwise, normal code path
1387
List JavaDoc<String JavaDoc> sparts = split(temp);
1388            parts = new Part[sparts.size()];
1389            for (int i = 0; i < parts.length; i++) {
1390                parts[i] = new Part(sparts.get(i));
1391                if (parts[i].named) {
1392                    simple = false;
1393                }
1394            }
1395        }
1396
1397        /**
1398         * Gets the style. Creates it if necessary.
1399         * @return the style
1400         */

1401        SynthStyle getStyle() {
1402            // Caching is disabled for now are there is no way to invalidate the
1403
// cache when SynthLookAndFeel.updateStyle() is called.
1404
//if (style == null) {
1405
style = new NimbusStyle(prefix);
1406            //}
1407
return style;
1408        }
1409
1410        /**
1411         * This LazyStyle is a match for the given component if, and only if,
1412         * for each part of the prefix the component hierarchy matches exactly.
1413         * That is, if given "a":something:"b", then:
1414         * c.getName() must equals "b"
1415         * c.getParent() can be anything
1416         * c.getParent().getParent().getName() must equal "a".
1417         */

1418        boolean matches(JComponent JavaDoc c) {
1419            return matches(c, parts.length - 1);
1420        }
1421
1422        private boolean matches(Component JavaDoc c, int partIndex) {
1423            if (partIndex < 0) return true;
1424            if (c == null) return false;
1425            //only get here if partIndex > 0 and c == null
1426

1427            String JavaDoc name = c.getName();
1428            if (parts[partIndex].named && parts[partIndex].s.equals(name)) {
1429                //so far so good, recurse
1430
return matches(c.getParent(), partIndex - 1);
1431            } else if (!parts[partIndex].named) {
1432                //if c is not named, and parts[partIndex] has an expected class
1433
//type registered, then check to make sure c is of the
1434
//right type;
1435
Class JavaDoc clazz = parts[partIndex].c;
1436                if (clazz != null && clazz.isAssignableFrom(c.getClass())) {
1437                    //so far so good, recurse
1438
return matches(c.getParent(), partIndex - 1);
1439                } else if (clazz == null &&
1440                           registeredRegions.containsKey(parts[partIndex].s)) {
1441                    Region JavaDoc r = registeredRegions.get(parts[partIndex].s);
1442                    Component JavaDoc parent = r.isSubregion() ? c : c.getParent();
1443                    //special case the JInternalFrameTitlePane, because it
1444
//doesn't fit the mold. very, very funky.
1445
if (r == Region.INTERNAL_FRAME_TITLE_PANE && parent != null
1446                        && parent instanceof JInternalFrame.JDesktopIcon JavaDoc) {
1447                        JInternalFrame.JDesktopIcon JavaDoc icon =
1448                                (JInternalFrame.JDesktopIcon JavaDoc) parent;
1449                        parent = icon.getInternalFrame();
1450                    }
1451                    //it was the name of a region. So far, so good. Recurse.
1452
return matches(parent, partIndex - 1);
1453                }
1454            }
1455
1456            return false;
1457        }
1458
1459        /**
1460         * Given some dot separated prefix, split on the colons that are
1461         * not within quotes, and not within brackets.
1462         *
1463         * @param prefix
1464         * @return
1465         */

1466        private List JavaDoc<String JavaDoc> split(String JavaDoc prefix) {
1467            List JavaDoc<String JavaDoc> parts = new ArrayList JavaDoc<String JavaDoc>();
1468            int bracketCount = 0;
1469            boolean inquotes = false;
1470            int lastIndex = 0;
1471            for (int i = 0; i < prefix.length(); i++) {
1472                char c = prefix.charAt(i);
1473
1474                if (c == '[') {
1475                    bracketCount++;
1476                    continue;
1477                } else if (c == '"') {
1478                    inquotes = !inquotes;
1479                    continue;
1480                } else if (c == ']') {
1481                    bracketCount--;
1482                    if (bracketCount < 0) {
1483                        throw new RuntimeException JavaDoc(
1484                                "Malformed prefix: " + prefix);
1485                    }
1486                    continue;
1487                }
1488
1489                if (c == ':' && !inquotes && bracketCount == 0) {
1490                    //found a character to split on.
1491
parts.add(prefix.substring(lastIndex, i));
1492                    lastIndex = i + 1;
1493                }
1494            }
1495            if (lastIndex < prefix.length() - 1 && !inquotes
1496                    && bracketCount == 0) {
1497                parts.add(prefix.substring(lastIndex));
1498            }
1499            return parts;
1500
1501        }
1502
1503        private final class Part {
1504            private String JavaDoc s;
1505            //true if this part represents a component name
1506
private boolean named;
1507            private Class JavaDoc c;
1508
1509            Part(String JavaDoc s) {
1510                named = s.charAt(0) == '"' && s.charAt(s.length() - 1) == '"';
1511                if (named) {
1512                    this.s = s.substring(1, s.length() - 1);
1513                } else {
1514                    this.s = s;
1515                    //TODO use a map of known regions for Synth and Swing, and
1516
//then use [classname] instead of org_class_name style
1517
try {
1518                        c = Class.forName("javax.swing.J" + s);
1519                    } catch (Exception JavaDoc e) {
1520                    }
1521                    try {
1522                        c = Class.forName(s.replace("_", "."));
1523                    } catch (Exception JavaDoc e) {
1524                    }
1525                }
1526            }
1527        }
1528    }
1529
1530    /**
1531     * Get a derived color, derived colors are shared instances and will be
1532     * updated when its parent UIDefault color changes.
1533     *
1534     * @param uiDefaultParentName The parent UIDefault key
1535     * @param hOffset The hue offset
1536     * @param sOffset The saturation offset
1537     * @param bOffset The brightness offset
1538     * @param aOffset The alpha offset
1539     * @return The stored derived color
1540     */

1541    public DerivedColor getDerivedColor(String JavaDoc uiDefaultParentName,
1542                                        float hOffset, float sOffset,
1543                                        float bOffset, int aOffset){
1544        return getDerivedColor(uiDefaultParentName, hOffset, sOffset,
1545                               bOffset, aOffset, true);
1546    }
1547
1548    /**
1549     * Get a derived color, derived colors are shared instances and will be
1550     * updated when its parent UIDefault color changes.
1551     *
1552     * @param uiDefaultParentName The parent UIDefault key
1553     * @param hOffset The hue offset
1554     * @param sOffset The saturation offset
1555     * @param bOffset The brightness offset
1556     * @param aOffset The alpha offset
1557     * @param uiResource True if the derived color should be a UIResource,
1558     * false if it should not be a UIResource
1559     * @return The stored derived color
1560     */

1561    public DerivedColor getDerivedColor(String JavaDoc uiDefaultParentName,
1562                                        float hOffset, float sOffset,
1563                                        float bOffset, int aOffset,
1564                                        boolean uiResource){
1565        tmpDCKey.set(uiDefaultParentName, hOffset, sOffset, bOffset, aOffset,
1566            uiResource);
1567        DerivedColor color = derivedColorsMap.get(tmpDCKey);
1568        if (color == null){
1569            if (uiResource) {
1570                color = new DerivedColor.UIResource(uiDefaultParentName,
1571                        hOffset, sOffset, bOffset, aOffset);
1572            } else {
1573                color = new DerivedColor(uiDefaultParentName, hOffset, sOffset,
1574                    bOffset, aOffset);
1575            }
1576            // calculate the initial value
1577
color.rederiveColor();
1578            // add the listener so that if the color changes we'll propogate it
1579
color.addPropertyChangeListener(defaultsListener);
1580            // add to the derived colors table
1581
derivedColorsMap.put(new DerivedColorKey(uiDefaultParentName,
1582                    hOffset, sOffset, bOffset, aOffset, uiResource),color);
1583        }
1584        return color;
1585    }
1586
1587    /**
1588     * Key class for derived colors
1589     */

1590    private class DerivedColorKey {
1591        private String JavaDoc uiDefaultParentName;
1592        private float hOffset, sOffset, bOffset;
1593        private int aOffset;
1594        private boolean uiResource;
1595
1596        DerivedColorKey(){}
1597
1598        DerivedColorKey(String JavaDoc uiDefaultParentName, float hOffset,
1599                        float sOffset, float bOffset, int aOffset,
1600                        boolean uiResource) {
1601            set(uiDefaultParentName, hOffset, sOffset, bOffset, aOffset, uiResource);
1602        }
1603
1604        void set (String JavaDoc uiDefaultParentName, float hOffset,
1605                        float sOffset, float bOffset, int aOffset,
1606                        boolean uiResource) {
1607            this.uiDefaultParentName = uiDefaultParentName;
1608            this.hOffset = hOffset;
1609            this.sOffset = sOffset;
1610            this.bOffset = bOffset;
1611            this.aOffset = aOffset;
1612            this.uiResource = uiResource;
1613        }
1614
1615        @Override JavaDoc
1616        public boolean equals(Object JavaDoc o) {
1617            if (this == o) return true;
1618            if (!(o instanceof DerivedColorKey)) return false;
1619            DerivedColorKey that = (DerivedColorKey) o;
1620            if (aOffset != that.aOffset) return false;
1621            if (Float.compare(that.bOffset, bOffset) != 0) return false;
1622            if (Float.compare(that.hOffset, hOffset) != 0) return false;
1623            if (Float.compare(that.sOffset, sOffset) != 0) return false;
1624            if (uiDefaultParentName != null ?
1625                !uiDefaultParentName.equals(that.uiDefaultParentName) :
1626                that.uiDefaultParentName != null) return false;
1627            if (this.uiResource != that.uiResource) return false;
1628            return true;
1629        }
1630
1631        @Override JavaDoc
1632        public int hashCode() {
1633            int result = super.hashCode();
1634            result = 31 * result + uiDefaultParentName.hashCode();
1635            result = 31 * result + hOffset != +0.0f ?
1636                    Float.floatToIntBits(hOffset) : 0;
1637            result = 31 * result + sOffset != +0.0f ?
1638                    Float.floatToIntBits(sOffset) : 0;
1639            result = 31 * result + bOffset != +0.0f ?
1640                    Float.floatToIntBits(bOffset) : 0;
1641            result = 31 * result + aOffset;
1642            result = 31 * result + (uiResource ? 1 : 0);
1643            return result;
1644        }
1645    }
1646
1647    /**
1648     * Listener to update derived colors on UIManager Defaults changes
1649     */

1650    private class DefaultsListener implements PropertyChangeListener JavaDoc {
1651        public void propertyChange(PropertyChangeEvent JavaDoc evt) {
1652            Object JavaDoc src = evt.getSource();
1653            String JavaDoc key = evt.getPropertyName();
1654            if (key.equals("lookAndFeel")){
1655                // LAF has been installed, this is the first point at which we
1656
// can access our defaults table via UIManager so before now
1657
// all derived colors will be incorrect.
1658
// First we need to update
1659
for (DerivedColor color : derivedColorsMap.values()) {
1660                    color.rederiveColor();
1661                }
1662            } else if (src instanceof DerivedColor && key.equals("rgb")) {
1663                // derived color that is in UIManager defaults has changed
1664
// update all its dependent colors. Don't worry about doing
1665
// this recursively since calling rederiveColor will cause
1666
// another PCE to be fired, ending up here and essentially
1667
// recursing
1668
DerivedColor parentColor = (DerivedColor)src;
1669                String JavaDoc parentKey = null;
1670                Set JavaDoc<Map.Entry JavaDoc<Object JavaDoc,Object JavaDoc>> entries =
1671                        UIManager.getDefaults().entrySet();
1672                
1673                for (Map.Entry JavaDoc entry : entries) {
1674                    Object JavaDoc value = entry.getValue();
1675                    if (value == parentColor) {
1676                        parentKey = entry.getKey().toString();
1677                    }
1678                }
1679                
1680                if (parentKey == null) {
1681                    //couldn't find the DerivedColor in the UIDefaults map,
1682
//so we just bail.
1683
return;
1684                }
1685                
1686                for (Map.Entry JavaDoc entry : entries) {
1687                    Object JavaDoc value = entry.getValue();
1688                    if (value instanceof DerivedColor) {
1689                        DerivedColor color = (DerivedColor)entry.getValue();
1690                        if (parentKey.equals(color.getUiDefaultParentName())) {
1691                            color.rederiveColor();
1692                        }
1693                    }
1694                }
1695            }
1696        }
1697    }
1698
1699    private static final class PainterBorder implements Border JavaDoc, UIResource JavaDoc {
1700        private Insets JavaDoc insets;
1701        private Painter painter;
1702        private String JavaDoc painterKey;
1703        
1704        PainterBorder(String JavaDoc painterKey, Insets JavaDoc insets) {
1705            this.insets = insets;
1706            this.painterKey = painterKey;
1707        }
1708        
1709        public void paintBorder(Component JavaDoc c, Graphics JavaDoc g, int x, int y, int w, int h) {
1710            if (painter == null) {
1711                painter = (Painter)UIManager.get(painterKey);
1712                if (painter == null) return;
1713            }
1714            
1715            g.translate(x, y);
1716            if (g instanceof Graphics2D JavaDoc)
1717                painter.paint((Graphics2D JavaDoc)g, c, w, h);
1718            else {
1719                BufferedImage JavaDoc img = new BufferedImage JavaDoc(w, h, TYPE_INT_ARGB);
1720                Graphics2D JavaDoc gfx = img.createGraphics();
1721                painter.paint(gfx, c, w, h);
1722                gfx.dispose();
1723                g.drawImage(img, x, y, null);
1724                img = null;
1725            }
1726            g.translate(-x, -y);
1727        }
1728
1729        public Insets JavaDoc getBorderInsets(Component JavaDoc c) {
1730            return (Insets JavaDoc)insets.clone();
1731        }
1732
1733        public boolean isBorderOpaque() {
1734            return false;
1735        }
1736    }
1737}
1738
Popular Tags