1 7 package com.sun.java.swing.plaf.nimbus; 8 9 import com.sun.java.swing.Painter; 10 import java.awt.Graphics ; 11 import sun.font.FontManager; 12 import sun.swing.plaf.synth.DefaultSynthStyle; 13 14 import javax.swing.BorderFactory ; 15 import javax.swing.JComponent ; 16 import javax.swing.JInternalFrame ; 17 import javax.swing.UIDefaults ; 18 import javax.swing.UIManager ; 19 import javax.swing.plaf.BorderUIResource ; 20 import javax.swing.plaf.ColorUIResource ; 21 import javax.swing.plaf.DimensionUIResource ; 22 import javax.swing.plaf.FontUIResource ; 23 import javax.swing.plaf.InsetsUIResource ; 24 import javax.swing.plaf.synth.Region ; 25 import javax.swing.plaf.synth.SynthStyle ; 26 import java.awt.Color ; 27 import java.awt.Component ; 28 import java.awt.Dimension ; 29 import java.awt.Font ; 30 import java.awt.Graphics2D ; 31 import java.awt.Insets ; 32 import java.awt.image.BufferedImage ; 33 import static java.awt.image.BufferedImage .*; 34 import java.beans.PropertyChangeEvent ; 35 import java.beans.PropertyChangeListener ; 36 import java.lang.reflect.Constructor ; 37 import java.util.ArrayList ; 38 import java.util.HashMap ; 39 import java.util.HashSet ; 40 import java.util.LinkedList ; 41 import java.util.List ; 42 import java.util.Map ; 43 import java.util.Set ; 44 import javax.swing.border.Border ; 45 import javax.swing.border.CompoundBorder ; 46 import javax.swing.plaf.UIResource ; 47 48 56 final class NimbusDefaults { 57 67 private Map <Region , List <LazyStyle>> m; 68 74 private Map <String , Region > registeredRegions = 75 new HashMap <String , Region >(); 76 80 private DefaultSynthStyle defaultStyle; 81 85 private FontUIResource defaultFont; 86 87 90 private Map <DerivedColorKey, DerivedColor> derivedColorsMap = 91 new HashMap <DerivedColorKey, DerivedColor>(); 92 93 94 private final DerivedColorKey tmpDCKey = new DerivedColorKey(); 95 96 97 private DefaultsListener defaultsListener = new DefaultsListener(); 98 99 100 void initialize() { 101 UIManager.addPropertyChangeListener(defaultsListener); 103 UIManager.getDefaults().addPropertyChangeListener(defaultsListener); 104 } 105 106 107 void uninitialize() { 108 UIManager.getDefaults().removePropertyChangeListener(defaultsListener); 110 UIManager.removePropertyChangeListener(defaultsListener); 111 } 112 113 117 NimbusDefaults() { 118 m = new HashMap <Region , List <LazyStyle>>(); 119 120 defaultFont = FontManager.getFontConfigFUIR("sans", Font.PLAIN, 12); 125 defaultStyle = new DefaultSynthStyle(); 126 defaultStyle.setFont(defaultFont); 127 128 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 222 230 void initializeDefaults(UIDefaults d) { 231 d.put("text",new ColorUIResource (new Color (0, 0, 0, 255))); 233 d.put("control",new ColorUIResource (new Color (214, 217, 223, 255))); 234 d.put("nimbusBase",new ColorUIResource (new Color (51, 98, 140, 255))); 235 d.put("nimbusBlueGrey",getDerivedColor("nimbusBase",0.032459438f,-0.52518797f,0.19607842f,0)); 236 d.put("nimbusOrange",new ColorUIResource (new Color (191, 98, 4, 255))); 237 d.put("nimbusGreen",new ColorUIResource (new Color (176, 179, 50, 255))); 238 d.put("nimbusRed",new ColorUIResource (new Color (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 (new Color (47, 92, 180, 255))); 242 d.put("nimbusAlertYellow",new ColorUIResource (new Color (255, 220, 35, 255))); 243 d.put("nimbusFocus",new ColorUIResource (new Color (115, 164, 209, 255))); 244 d.put("nimbusSelectedText",new ColorUIResource (new Color (255, 255, 255, 255))); 245 d.put("nimbusSelectionBackground",new ColorUIResource (new Color (57, 105, 138, 255))); 246 d.put("nimbusDisabledText",new ColorUIResource (new Color (142, 143, 145, 255))); 247 d.put("nimbusLightBackground",new ColorUIResource (new Color (255, 255, 255, 255))); 248 d.put("infoText",getDerivedColor("text",0.0f,0.0f,0.0f,0)); 249 d.put("info",new ColorUIResource (new Color (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 d.put("defaultFont", new FontUIResource (defaultFont)); 267 d.put("InternalFrame.titleFont", new DerivedFont("defaultFont", 1.0f, true, null)); 268 269 271 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 d.put("ArrowButton.contentMargins", new InsetsUIResource (0, 0, 0, 0)); 280 d.put("ArrowButton.size", new Integer (16)); 281 d.put("ArrowButton[Disabled].foregroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.ArrowButtonPainter", ArrowButtonPainter.FOREGROUND_DISABLED, new Insets (0, 0, 0, 0), new Dimension (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 (0, 0, 0, 0), new Dimension (10, 10), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0)); 283 284 d.put("Button.contentMargins", new InsetsUIResource (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 (7, 7, 7, 7), new Dimension (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 (7, 7, 7, 7), new Dimension (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 (7, 7, 7, 7), new Dimension (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 (7, 7, 7, 7), new Dimension (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 (7, 7, 7, 7), new Dimension (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 (7, 7, 7, 7), new Dimension (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 (7, 7, 7, 7), new Dimension (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 (7, 7, 7, 7), new Dimension (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 (7, 7, 7, 7), new Dimension (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 (7, 7, 7, 7), new Dimension (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 (7, 7, 7, 7), new Dimension (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 (7, 7, 7, 7), new Dimension (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 (7, 7, 7, 7), new Dimension (104, 33), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, 2.0)); 302 303 d.put("ToggleButton.contentMargins", new InsetsUIResource (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 (7, 7, 7, 7), new Dimension (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 (7, 7, 7, 7), new Dimension (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 (7, 7, 7, 7), new Dimension (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 (7, 7, 7, 7), new Dimension (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 (7, 7, 7, 7), new Dimension (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 (7, 7, 7, 7), new Dimension (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 (7, 7, 7, 7), new Dimension (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 (7, 7, 7, 7), new Dimension (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 (7, 7, 7, 7), new Dimension (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 (7, 7, 7, 7), new Dimension (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 (7, 7, 7, 7), new Dimension (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 (7, 7, 7, 7), new Dimension (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 (7, 7, 7, 7), new Dimension (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 (7, 7, 7, 7), new Dimension (72, 24), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, 2.0)); 321 322 d.put("RadioButton.contentMargins", new InsetsUIResource (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 (5, 5, 5, 5), new Dimension (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 (5, 5, 5, 5), new Dimension (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 (5, 5, 5, 5), new Dimension (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 (5, 5, 5, 5), new Dimension (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 (5, 5, 5, 5), new Dimension (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 (5, 5, 5, 5), new Dimension (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 (5, 5, 5, 5), new Dimension (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 (5, 5, 5, 5), new Dimension (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 (5, 5, 5, 5), new Dimension (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 (5, 5, 5, 5), new Dimension (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 (5, 5, 5, 5), new Dimension (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 (5, 5, 5, 5), new Dimension (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 (5, 5, 5, 5), new Dimension (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 (5, 5, 5, 5), new Dimension (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 d.put("CheckBox.contentMargins", new InsetsUIResource (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 (5, 5, 5, 5), new Dimension (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 (5, 5, 5, 5), new Dimension (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 (5, 5, 5, 5), new Dimension (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 (5, 5, 5, 5), new Dimension (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 (5, 5, 5, 5), new Dimension (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 (5, 5, 5, 5), new Dimension (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 (5, 5, 5, 5), new Dimension (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 (5, 5, 5, 5), new Dimension (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 (5, 5, 5, 5), new Dimension (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 (5, 5, 5, 5), new Dimension (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 (5, 5, 5, 5), new Dimension (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 (5, 5, 5, 5), new Dimension (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 (5, 5, 5, 5), new Dimension (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 (5, 5, 5, 5), new Dimension (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 d.put("ColorChooser.contentMargins", new InsetsUIResource (5, 0, 0, 0)); 362 d.put("ColorChooser.swatchesDefaultRecentColor", new ColorUIResource (new Color (255, 255, 255, 255))); 363 d.put("ColorChooser:\"ColorChooser.previewPanelHolder\".contentMargins", new InsetsUIResource (0, 5, 10, 5)); 364 d.put("ColorChooser:\"ColorChooser.previewPanelHolder\":\"OptionPane.label\".contentMargins", new InsetsUIResource (0, 10, 10, 10)); 365 366 d.put("ComboBox.contentMargins", new InsetsUIResource (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 (-2, 2, 0, 2)); 375 d.put("ComboBox[Disabled].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.ComboBoxPainter", ComboBoxPainter.BACKGROUND_DISABLED, new Insets (8, 9, 8, 19), new Dimension (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 (8, 9, 8, 19), new Dimension (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 (8, 9, 8, 19), new Dimension (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 (8, 9, 8, 19), new Dimension (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 (8, 9, 8, 19), new Dimension (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 (8, 9, 8, 19), new Dimension (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 (8, 9, 8, 19), new Dimension (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 (8, 9, 8, 19), new Dimension (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 (8, 9, 8, 19), new Dimension (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 (6, 5, 6, 17), new Dimension (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 (6, 5, 6, 17), new Dimension (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 (5, 5, 5, 5), new Dimension (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 (4, 5, 5, 17), new Dimension (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 (4, 5, 5, 17), new Dimension (79, 21), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, 2.0)); 389 d.put("ComboBox:\"ComboBox.textField\".contentMargins", new InsetsUIResource (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 (5, 3, 3, 1), new Dimension (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 (5, 3, 3, 1), new Dimension (64, 24), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, 2.0)); 393 d.put("ComboBox:\"ComboBox.arrowButton\".contentMargins", new InsetsUIResource (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 (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 (8, 1, 8, 8), new Dimension (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 (8, 1, 8, 8), new Dimension (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 (8, 1, 8, 8), new Dimension (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 (8, 1, 8, 8), new Dimension (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 (8, 1, 8, 8), new Dimension (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 (6, 9, 6, 10), new Dimension (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 (6, 9, 6, 10), new Dimension (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 (6, 9, 6, 10), new Dimension (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 (6, 9, 6, 10), new Dimension (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 (6, 9, 6, 10), new Dimension (24, 19), true, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, 2.0)); 407 d.put("ComboBox:\"ComboBox.listRenderer\".contentMargins", new InsetsUIResource (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 (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 d.put("\"ComboBox.scrollPane\".contentMargins", new InsetsUIResource (0, 0, 0, 0)); 420 421 d.put("FileChooser.contentMargins", new InsetsUIResource (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 (0, 0, 0, 0), new Dimension (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 (5, 5, 5, 5), new Dimension (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 (5, 5, 5, 5), new Dimension (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 (5, 5, 5, 5), new Dimension (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 (5, 5, 5, 5), new Dimension (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 (5, 5, 5, 5), new Dimension (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 (5, 5, 5, 5), new Dimension (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 (5, 5, 5, 5), new Dimension (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 (5, 5, 5, 5), new Dimension (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 (5, 5, 5, 5), new Dimension (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 d.put("InternalFrameTitlePane.contentMargins", new InsetsUIResource (0, 0, 0, 0)); 446 d.put("InternalFrameTitlePane.maxFrameIconSize", new DimensionUIResource (18, 18)); 447 448 d.put("InternalFrame.contentMargins", new InsetsUIResource (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 (25, 6, 6, 6), new Dimension (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 (25, 6, 6, 6), new Dimension (25, 36), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY)); 454 d.put("InternalFrame:InternalFrameTitlePane.contentMargins", new InsetsUIResource (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 (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 (0, 0, 0, 0), new Dimension (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 (0, 0, 0, 0), new Dimension (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 (0, 0, 0, 0), new Dimension (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 (0, 0, 0, 0), new Dimension (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 (0, 0, 0, 0), new Dimension (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 (0, 0, 0, 0), new Dimension (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 (0, 0, 0, 0), new Dimension (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 (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 (0, 0, 0, 0), new Dimension (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 (0, 0, 0, 0), new Dimension (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 (0, 0, 0, 0), new Dimension (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 (0, 0, 0, 0), new Dimension (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 (0, 0, 0, 0), new Dimension (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 (0, 0, 0, 0), new Dimension (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 (0, 0, 0, 0), new Dimension (19, 18), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY)); 481 d.put("InternalFrame:InternalFrameTitlePane:\"InternalFrameTitlePane.maximizeButton\".contentMargins", new InsetsUIResource (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 (0, 0, 0, 0), new Dimension (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 (0, 0, 0, 0), new Dimension (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 (0, 0, 0, 0), new Dimension (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 (0, 0, 0, 0), new Dimension (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 (0, 0, 0, 0), new Dimension (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 (0, 0, 0, 0), new Dimension (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 (0, 0, 0, 0), new Dimension (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 (0, 0, 0, 0), new Dimension (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 (0, 0, 0, 0), new Dimension (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 (0, 0, 0, 0), new Dimension (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 (0, 0, 0, 0), new Dimension (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 (0, 0, 0, 0), new Dimension (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 (0, 0, 0, 0), new Dimension (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 (0, 0, 0, 0), new Dimension (19, 18), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY)); 499 d.put("InternalFrame:InternalFrameTitlePane:\"InternalFrameTitlePane.closeButton\".contentMargins", new InsetsUIResource (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 (0, 0, 0, 0), new Dimension (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 (0, 0, 0, 0), new Dimension (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 (0, 0, 0, 0), new Dimension (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 (0, 0, 0, 0), new Dimension (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 (0, 0, 0, 0), new Dimension (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 (0, 0, 0, 0), new Dimension (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 (0, 0, 0, 0), new Dimension (19, 18), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY)); 509 510 d.put("DesktopIcon.contentMargins", new InsetsUIResource (4, 6, 5, 4)); 512 d.put("DesktopIcon[Enabled].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.DesktopIconPainter", DesktopIconPainter.BACKGROUND_ENABLED, new Insets (5, 5, 5, 5), new Dimension (28, 26), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY)); 513 514 d.put("DesktopPane.contentMargins", new InsetsUIResource (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 (0, 0, 0, 0), new Dimension (300, 232), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY)); 518 519 d.put("Label.contentMargins", new InsetsUIResource (0, 0, 0, 0)); 521 d.put("Label[Disabled].textForeground", getDerivedColor("nimbusDisabledText",0.0f,0.0f,0.0f,0)); 522 523 d.put("List.contentMargins", new InsetsUIResource (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 (BorderFactory.createEmptyBorder(2, 5, 2, 5))); 530 d.put("List.focusCellHighlightBorder", new BorderUIResource (new PainterBorder("Tree:TreeCell[Enabled+Focused].backgroundPainter", new Insets (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 (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 d.put("MenuBar.contentMargins", new InsetsUIResource (2, 6, 2, 6)); 542 d.put("MenuBar[Enabled].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.MenuBarPainter", MenuBarPainter.BACKGROUND_ENABLED, new Insets (1, 0, 0, 0), new Dimension (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 (0, 0, 1, 0), new Dimension (30, 30), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, 2.0)); 544 d.put("MenuBar:Menu.contentMargins", new InsetsUIResource (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 (new Color (35, 35, 36, 255))); 547 d.put("MenuBar:Menu[Selected].textForeground", new ColorUIResource (new Color (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 (0, 0, 0, 0), new Dimension (100, 30), false, AbstractRegionPainter.PaintContext.CacheMode.NO_CACHING, 1.0, 1.0)); 549 d.put("MenuBar:Menu:MenuItemAccelerator.contentMargins", new InsetsUIResource (0, 0, 0, 0)); 550 551 d.put("MenuItem.contentMargins", new InsetsUIResource (1, 12, 2, 13)); 553 d.put("MenuItem.textIconGap", new Integer (5)); 554 d.put("MenuItem[Disabled].textForeground", getDerivedColor("nimbusDisabledText",0.0f,0.0f,0.0f,0)); 555 d.put("MenuItem[Enabled].textForeground", new ColorUIResource (new Color (35, 35, 36, 255))); 556 d.put("MenuItem[MouseOver].textForeground", new ColorUIResource (new Color (255, 255, 255, 255))); 557 d.put("MenuItem[MouseOver].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.MenuItemPainter", MenuItemPainter.BACKGROUND_MOUSEOVER, new Insets (0, 0, 0, 0), new Dimension (100, 3), false, AbstractRegionPainter.PaintContext.CacheMode.NO_CACHING, 1.0, 1.0)); 558 d.put("MenuItem:MenuItemAccelerator.contentMargins", new InsetsUIResource (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 (new Color (255, 255, 255, 255))); 561 562 d.put("RadioButtonMenuItem.contentMargins", new InsetsUIResource (1, 12, 2, 13)); 564 d.put("RadioButtonMenuItem.textIconGap", new Integer (5)); 565 d.put("RadioButtonMenuItem[Disabled].textForeground", getDerivedColor("nimbusDisabledText",0.0f,0.0f,0.0f,0)); 566 d.put("RadioButtonMenuItem[Enabled].textForeground", new ColorUIResource (new Color (35, 35, 36, 255))); 567 d.put("RadioButtonMenuItem[MouseOver].textForeground", new ColorUIResource (new Color (255, 255, 255, 255))); 568 d.put("RadioButtonMenuItem[MouseOver].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.RadioButtonMenuItemPainter", RadioButtonMenuItemPainter.BACKGROUND_MOUSEOVER, new Insets (0, 0, 0, 0), new Dimension (100, 3), false, AbstractRegionPainter.PaintContext.CacheMode.NO_CACHING, 1.0, 1.0)); 569 d.put("RadioButtonMenuItem[MouseOver+Selected].textForeground", new ColorUIResource (new Color (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 (0, 0, 0, 0), new Dimension (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 (5, 5, 5, 5), new Dimension (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 (5, 5, 5, 5), new Dimension (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 (5, 5, 5, 5), new Dimension (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 (0, 0, 0, 0)); 576 d.put("RadioButtonMenuItem:MenuItemAccelerator[MouseOver].textForeground", new ColorUIResource (new Color (255, 255, 255, 255))); 577 578 d.put("CheckBoxMenuItem.contentMargins", new InsetsUIResource (1, 12, 2, 13)); 580 d.put("CheckBoxMenuItem.textIconGap", new Integer (5)); 581 d.put("CheckBoxMenuItem[Disabled].textForeground", getDerivedColor("nimbusDisabledText",0.0f,0.0f,0.0f,0)); 582 d.put("CheckBoxMenuItem[Enabled].textForeground", new ColorUIResource (new Color (35, 35, 36, 255))); 583 d.put("CheckBoxMenuItem[MouseOver].textForeground", new ColorUIResource (new Color (255, 255, 255, 255))); 584 d.put("CheckBoxMenuItem[MouseOver].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.CheckBoxMenuItemPainter", CheckBoxMenuItemPainter.BACKGROUND_MOUSEOVER, new Insets (0, 0, 0, 0), new Dimension (100, 3), false, AbstractRegionPainter.PaintContext.CacheMode.NO_CACHING, 1.0, 1.0)); 585 d.put("CheckBoxMenuItem[MouseOver+Selected].textForeground", new ColorUIResource (new Color (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 (0, 0, 0, 0), new Dimension (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 (5, 5, 5, 5), new Dimension (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 (5, 5, 5, 5), new Dimension (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 (5, 5, 5, 5), new Dimension (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 (0, 0, 0, 0)); 592 d.put("CheckBoxMenuItem:MenuItemAccelerator[MouseOver].textForeground", new ColorUIResource (new Color (255, 255, 255, 255))); 593 594 d.put("Menu.contentMargins", new InsetsUIResource (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 (new Color (35, 35, 36, 255))); 598 d.put("Menu[Enabled+Selected].textForeground", new ColorUIResource (new Color (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 (0, 0, 0, 0), new Dimension (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 (5, 5, 5, 5), new Dimension (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 (5, 5, 5, 5), new Dimension (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 (1, 1, 1, 1), new Dimension (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 (0, 0, 0, 0)); 605 d.put("Menu:MenuItemAccelerator[MouseOver].textForeground", new ColorUIResource (new Color (255, 255, 255, 255))); 606 607 d.put("PopupMenu.contentMargins", new InsetsUIResource (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 (9, 0, 11, 0), new Dimension (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 (11, 2, 11, 2), new Dimension (220, 313), false, AbstractRegionPainter.PaintContext.CacheMode.NO_CACHING, 1.0, 1.0)); 612 613 d.put("PopupMenuSeparator.contentMargins", new InsetsUIResource (1, 0, 2, 0)); 615 d.put("PopupMenuSeparator[Enabled].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.PopupMenuSeparatorPainter", PopupMenuSeparatorPainter.BACKGROUND_ENABLED, new Insets (1, 1, 1, 1), new Dimension (100, 3), true, AbstractRegionPainter.PaintContext.CacheMode.NO_CACHING, 1.0, 1.0)); 616 617 d.put("OptionPane.contentMargins", new InsetsUIResource (15, 15, 15, 15)); 619 d.put("OptionPane.opaque", Boolean.TRUE); 620 d.put("OptionPane.buttonOrientation", new Integer (4)); 621 d.put("OptionPane.messageAnchor", new Integer (17)); 622 d.put("OptionPane.separatorPadding", new Integer (0)); 623 d.put("OptionPane.sameSizeButtons", Boolean.FALSE); 624 d.put("OptionPane:\"OptionPane.separator\".contentMargins", new InsetsUIResource (1, 0, 0, 0)); 625 d.put("OptionPane:\"OptionPane.messageArea\".contentMargins", new InsetsUIResource (0, 0, 10, 0)); 626 d.put("OptionPane:\"OptionPane.messageArea\":\"OptionPane.label\".contentMargins", new InsetsUIResource (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 (5, 5, 5, 5), new Dimension (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 (0, 0, 0, 0), new Dimension (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 (0, 0, 0, 0), new Dimension (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 (0, 0, 0, 0), new Dimension (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 (0, 0, 0, 0), new Dimension (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 d.put("Panel.contentMargins", new InsetsUIResource (0, 0, 0, 0)); 639 d.put("Panel.opaque", Boolean.TRUE); 640 641 d.put("ProgressBar.contentMargins", new InsetsUIResource (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 (27)); 648 d.put("ProgressBar.paintOutsideClip", Boolean.TRUE); 649 d.put("ProgressBar.vertictalSize", new DimensionUIResource (19, 150)); 650 d.put("ProgressBar.horizontalSize", new DimensionUIResource (150, 19)); 651 d.put("ProgressBar.cycleTime", new Integer (250)); 652 d.put("ProgressBar[Enabled].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.ProgressBarPainter", ProgressBarPainter.BACKGROUND_ENABLED, new Insets (5, 5, 5, 5), new Dimension (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 (5, 5, 5, 5), new Dimension (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 (5, 5, 5, 5), new Dimension (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 (5, 5, 5, 5), new Dimension (27, 19), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, 2.0)); 656 d.put("ProgressBar[Enabled+Indeterminate].progressPadding", new Integer (3)); 657 d.put("ProgressBar[Enabled+Indeterminate].foregroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.ProgressBarPainter", ProgressBarPainter.FOREGROUND_ENABLED_INDETERMINATE, new Insets (5, 5, 5, 5), new Dimension (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 (5, 5, 5, 5), new Dimension (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 (5, 5, 5, 5), new Dimension (27, 19), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, 2.0)); 660 d.put("ProgressBar[Disabled+Indeterminate].progressPadding", new Integer (3)); 661 d.put("ProgressBar[Disabled+Indeterminate].foregroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.ProgressBarPainter", ProgressBarPainter.FOREGROUND_DISABLED_INDETERMINATE, new Insets (5, 5, 5, 5), new Dimension (30, 13), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, 2.0)); 662 663 d.put("Separator.contentMargins", new InsetsUIResource (0, 0, 0, 0)); 665 d.put("Separator[Enabled].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.SeparatorPainter", SeparatorPainter.BACKGROUND_ENABLED, new Insets (0, 40, 0, 40), new Dimension (100, 3), true, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0)); 666 667 d.put("ScrollBar.contentMargins", new InsetsUIResource (0, 0, 0, 0)); 669 d.put("ScrollBar.opaque", Boolean.TRUE); 670 d.put("ScrollBar.incrementButtonGap", new Integer (-8)); 671 d.put("ScrollBar.decrementButtonGap", new Integer (-8)); 672 d.put("ScrollBar.thumbHeight", new Integer (15)); 673 d.put("ScrollBar.minimumThumbSize", new DimensionUIResource (29, 29)); 674 d.put("ScrollBar.maximumThumbSize", new DimensionUIResource (1000, 1000)); 675 d.put("ScrollBar:\"ScrollBar.button\".contentMargins", new InsetsUIResource (0, 0, 0, 0)); 676 d.put("ScrollBar:\"ScrollBar.button\".size", new Integer (25)); 677 d.put("ScrollBar:\"ScrollBar.button\"[Enabled].foregroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.ScrollBarScrollBarButtonPainter", ScrollBarScrollBarButtonPainter.FOREGROUND_ENABLED, new Insets (1, 1, 1, 1), new Dimension (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 (1, 1, 1, 1), new Dimension (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 (1, 1, 1, 1), new Dimension (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 (1, 1, 1, 1), new Dimension (25, 15), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0)); 681 d.put("ScrollBar:ScrollBarThumb.contentMargins", new InsetsUIResource (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 (0, 15, 0, 15), new Dimension (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 (0, 15, 0, 15), new Dimension (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 (0, 15, 0, 15), new Dimension (38, 15), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, 2.0)); 685 d.put("ScrollBar:ScrollBarTrack.contentMargins", new InsetsUIResource (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 (5, 5, 5, 5), new Dimension (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 (5, 10, 5, 9), new Dimension (34, 15), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0)); 688 689 d.put("ScrollPane.contentMargins", new InsetsUIResource (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 (5, 5, 5, 5), new Dimension (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 (5, 5, 5, 5), new Dimension (122, 24), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY)); 694 695 d.put("Viewport.contentMargins", new InsetsUIResource (0, 0, 0, 0)); 697 d.put("Viewport.opaque", Boolean.TRUE); 698 699 d.put("Slider.contentMargins", new InsetsUIResource (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 (17)); 704 d.put("Slider.thumbHeight", new Integer (17)); 705 d.put("Slider.trackBorder", new Integer (0)); 706 d.put("Slider.paintValue", Boolean.FALSE); 707 d.put("Slider.tickColor", new ColorUIResource (new Color (35, 40, 48, 255))); 708 d.put("Slider:SliderThumb.contentMargins", new InsetsUIResource (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 (5, 5, 5, 5), new Dimension (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 (5, 5, 5, 5), new Dimension (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 (5, 5, 5, 5), new Dimension (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 (5, 5, 5, 5), new Dimension (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 (5, 5, 5, 5), new Dimension (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 (5, 5, 5, 5), new Dimension (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 (5, 5, 5, 5), new Dimension (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 (5, 5, 5, 5), new Dimension (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 (5, 5, 5, 5), new Dimension (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 (5, 5, 5, 5), new Dimension (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 (5, 5, 5, 5), new Dimension (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 (5, 5, 5, 5), new Dimension (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 (5, 5, 5, 5), new Dimension (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 (5, 5, 5, 5), new Dimension (17, 17), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0)); 725 d.put("Slider:SliderTrack.contentMargins", new InsetsUIResource (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 (6, 5, 6, 5), new Dimension (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 (6, 5, 6, 5), new Dimension (23, 17), false, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0)); 730 731 d.put("Spinner.contentMargins", new InsetsUIResource (0, 0, 0, 0)); 733 d.put("Spinner:\"Spinner.editor\".contentMargins", new InsetsUIResource (0, 0, 0, 0)); 734 d.put("Spinner:Panel:\"Spinner.formattedTextField\".contentMargins", new InsetsUIResource (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 (5, 3, 3, 1), new Dimension (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 (5, 3, 3, 1), new Dimension (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 (5, 3, 3, 1), new Dimension (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 (5, 3, 3, 1), new Dimension (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 (5, 3, 3, 1), new Dimension (64, 24), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY)); 743 d.put("Spinner:\"Spinner.previousButton\".contentMargins", new InsetsUIResource (0, 0, 0, 0)); 744 d.put("Spinner:\"Spinner.previousButton\".size", new Integer (20)); 745 d.put("Spinner:\"Spinner.previousButton\"[Disabled].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.SpinnerSpinnerPreviousButtonPainter", SpinnerSpinnerPreviousButtonPainter.BACKGROUND_DISABLED, new Insets (0, 1, 6, 7), new Dimension (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 (0, 1, 6, 7), new Dimension (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 (0, 1, 6, 7), new Dimension (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 (3, 1, 6, 7), new Dimension (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 (0, 1, 6, 7), new Dimension (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 (0, 1, 6, 7), new Dimension (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 (0, 1, 6, 7), new Dimension (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 (3, 6, 5, 9), new Dimension (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 (3, 6, 5, 9), new Dimension (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 (3, 6, 5, 9), new Dimension (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 (3, 6, 5, 9), new Dimension (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 (3, 6, 5, 9), new Dimension (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 (3, 6, 5, 9), new Dimension (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 (3, 6, 5, 9), new Dimension (20, 12), true, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0)); 759 d.put("Spinner:\"Spinner.nextButton\".contentMargins", new InsetsUIResource (0, 0, 0, 0)); 760 d.put("Spinner:\"Spinner.nextButton\".size", new Integer (20)); 761 d.put("Spinner:\"Spinner.nextButton\"[Disabled].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.SpinnerSpinnerNextButtonPainter", SpinnerSpinnerNextButtonPainter.BACKGROUND_DISABLED, new Insets (7, 1, 1, 7), new Dimension (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 (7, 1, 1, 7), new Dimension (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 (7, 1, 1, 7), new Dimension (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 (7, 1, 1, 7), new Dimension (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 (7, 1, 1, 7), new Dimension (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 (7, 1, 1, 7), new Dimension (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 (7, 1, 1, 7), new Dimension (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 (5, 6, 3, 9), new Dimension (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 (5, 6, 3, 9), new Dimension (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 (3, 6, 3, 9), new Dimension (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 (3, 6, 3, 9), new Dimension (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 (5, 6, 3, 9), new Dimension (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 (5, 6, 3, 9), new Dimension (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 (5, 6, 3, 9), new Dimension (20, 12), true, AbstractRegionPainter.PaintContext.CacheMode.FIXED_SIZES, 1.0, 1.0)); 775 776 d.put("SplitPane.contentMargins", new InsetsUIResource (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 (10)); 781 d.put("SplitPane.centerOneTouchButtons", Boolean.TRUE); 782 d.put("SplitPane.oneTouchButtonOffset", new Integer (30)); 783 d.put("SplitPane.oneTouchExpandable", Boolean.FALSE); 784 d.put("SplitPane.continuousLayout", Boolean.TRUE); 785 d.put("SplitPane:SplitPaneDivider.contentMargins", new InsetsUIResource (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 (3, 0, 3, 0), new Dimension (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 (3, 0, 3, 0), new Dimension (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 (0, 24, 0, 24), new Dimension (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 (5, 0, 5, 0), new Dimension (10, 38), true, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY)); 792 793 d.put("TabbedPane.contentMargins", new InsetsUIResource (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 (2)); 798 d.put("TabbedPane.tabOverlap", new Integer (-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 (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 (7, 7, 1, 7), new Dimension (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 (7, 7, 1, 7), new Dimension (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 (7, 6, 1, 7), new Dimension (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 (6, 7, 1, 7), new Dimension (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 (7, 7, 0, 7), new Dimension (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 (7, 7, 0, 7), new Dimension (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 (7, 9, 0, 9), new Dimension (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 (new Color (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 (7, 9, 0, 9), new Dimension (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 (7, 7, 3, 7), new Dimension (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 (7, 9, 3, 9), new Dimension (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 (new Color (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 (7, 9, 3, 9), new Dimension (44, 20), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY)); 819 d.put("TabbedPane:TabbedPaneTabArea.contentMargins", new InsetsUIResource (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 (0, 5, 6, 5), new Dimension (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 (0, 5, 6, 5), new Dimension (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 (0, 5, 6, 5), new Dimension (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 (0, 5, 6, 5), new Dimension (5, 24), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY)); 824 d.put("TabbedPane:TabbedPaneContent.contentMargins", new InsetsUIResource (0, 0, 0, 0)); 825 826 d.put("Table.contentMargins", new InsetsUIResource (0, 0, 0, 0)); 828 d.put("Table.opaque", Boolean.TRUE); 829 d.put("Table.textForeground", new ColorUIResource (new Color (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 (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 (BorderFactory.createEmptyBorder(2, 5, 2, 5))); 837 d.put("Table.focusCellHighlightBorder", new BorderUIResource (new PainterBorder("Tree:TreeCell[Enabled+Focused].backgroundPainter", new Insets (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 (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 d.put("TableHeader.contentMargins", new InsetsUIResource (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 (0, 0, 0, 2), new Dimension (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 (0, 0, 0, 0), new Dimension (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 (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 (5, 5, 5, 5), new Dimension (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 (5, 5, 5, 5), new Dimension (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 (5, 5, 5, 5), new Dimension (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 (5, 5, 5, 5), new Dimension (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 (5, 5, 5, 5), new Dimension (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 (5, 5, 5, 5), new Dimension (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 (5, 5, 5, 5), new Dimension (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 (5, 5, 5, 5), new Dimension (22, 20), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY)); 865 866 d.put("\"Table.editor\".contentMargins", new InsetsUIResource (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 (5, 5, 5, 5), new Dimension (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 (5, 5, 5, 5), new Dimension (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 d.put("\"Tree.cellEditor\".contentMargins", new InsetsUIResource (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 (5, 5, 5, 5), new Dimension (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 (5, 5, 5, 5), new Dimension (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 d.put("TextField.contentMargins", new InsetsUIResource (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 (5, 5, 5, 5), new Dimension (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 (5, 5, 5, 5), new Dimension (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 (5, 5, 5, 5), new Dimension (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 (5, 3, 3, 3), new Dimension (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 (5, 5, 5, 5), new Dimension (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 (5, 5, 5, 5), new Dimension (122, 24), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY)); 896 897 d.put("FormattedTextField.contentMargins", new InsetsUIResource (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 (5, 5, 5, 5), new Dimension (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 (5, 5, 5, 5), new Dimension (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 (5, 5, 5, 5), new Dimension (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 (5, 3, 3, 3), new Dimension (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 (5, 5, 5, 5), new Dimension (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 (5, 5, 5, 5), new Dimension (122, 24), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY)); 908 909 d.put("PasswordField.contentMargins", new InsetsUIResource (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 (5, 5, 5, 5), new Dimension (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 (5, 5, 5, 5), new Dimension (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 (5, 5, 5, 5), new Dimension (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 (5, 3, 3, 3), new Dimension (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 (5, 5, 5, 5), new Dimension (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 (5, 5, 5, 5), new Dimension (122, 24), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY)); 920 921 d.put("TextArea.contentMargins", new InsetsUIResource (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 (5, 5, 5, 5), new Dimension (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 (5, 5, 5, 5), new Dimension (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 (5, 5, 5, 5), new Dimension (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 (5, 5, 5, 5), new Dimension (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 (5, 5, 5, 5), new Dimension (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 (5, 3, 3, 3), new Dimension (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 (5, 5, 5, 5), new Dimension (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 (5, 5, 5, 5), new Dimension (122, 24), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY)); 937 938 d.put("TextPane.contentMargins", new InsetsUIResource (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 (5, 5, 5, 5), new Dimension (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 (5, 5, 5, 5), new Dimension (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 (5, 5, 5, 5), new Dimension (100, 30), false, AbstractRegionPainter.PaintContext.CacheMode.NO_CACHING, 1.0, 1.0)); 946 947 d.put("EditorPane.contentMargins", new InsetsUIResource (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 (5, 5, 5, 5), new Dimension (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 (5, 5, 5, 5), new Dimension (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 (5, 5, 5, 5), new Dimension (100, 30), false, AbstractRegionPainter.PaintContext.CacheMode.NO_CACHING, 1.0, 1.0)); 955 956 d.put("ToolBar.contentMargins", new InsetsUIResource (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 (0, 0, 1, 0), new Dimension (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 (5, 5, 5, 5), new Dimension (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 (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 (5, 5, 5, 5), new Dimension (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 (5, 5, 5, 5), new Dimension (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 (5, 5, 5, 5), new Dimension (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 (5, 5, 5, 5), new Dimension (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 (5, 5, 5, 5), new Dimension (104, 33), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, 2.0, Double.POSITIVE_INFINITY)); 968 d.put("ToolBar:ToggleButton.contentMargins", new InsetsUIResource (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 (5, 5, 5, 5), new Dimension (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 (5, 5, 5, 5), new Dimension (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 (5, 5, 5, 5), new Dimension (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 (5, 5, 5, 5), new Dimension (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 (5, 5, 5, 5), new Dimension (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 (5, 5, 5, 5), new Dimension (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 (5, 5, 5, 5), new Dimension (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 (5, 5, 5, 5), new Dimension (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 (5, 5, 5, 5), new Dimension (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 (5, 5, 5, 5), new Dimension (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 (5, 5, 5, 5), new Dimension (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 (5, 5, 5, 5), new Dimension (72, 25), false, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, 2.0, Double.POSITIVE_INFINITY)); 982 983 d.put("ToolBarSeparator.contentMargins", new InsetsUIResource (2, 0, 3, 0)); 985 d.put("ToolBarSeparator[Enabled].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.ToolBarSeparatorPainter", ToolBarSeparatorPainter.BACKGROUND_ENABLED, new Insets (1, 0, 1, 0), new Dimension (38, 7), true, AbstractRegionPainter.PaintContext.CacheMode.NINE_SQUARE_SCALE, Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY)); 986 987 d.put("ToolTip.contentMargins", new InsetsUIResource (4, 4, 4, 4)); 989 d.put("ToolTip[Enabled].backgroundPainter", new LazyPainter("com.sun.java.swing.plaf.nimbus.ToolTipPainter", ToolTipPainter.BACKGROUND_ENABLED, new Insets (1, 1, 1, 1), new Dimension (10, 10), false, AbstractRegionPainter.PaintContext.CacheMode.NO_CACHING, 1.0, 1.0)); 990 991 d.put("Tree.contentMargins", new InsetsUIResource (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 (12)); 999 d.put("Tree.rightChildIndent", new Integer (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 (0)); 1006 d.put("Tree.rendererMargins", new InsetsUIResource (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 (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 (5, 5, 5, 5), new Dimension (100, 30), false, AbstractRegionPainter.PaintContext.CacheMode.NO_CACHING, 1.0, 1.0)); 1013 d.put("Tree:TreeCell[Enabled+Selected].textForeground", new ColorUIResource (new Color (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 (5, 5, 5, 5), new Dimension (100, 30), false, AbstractRegionPainter.PaintContext.CacheMode.NO_CACHING, 1.0, 1.0)); 1015 d.put("Tree:TreeCell[Focused+Selected].textForeground", new ColorUIResource (new Color (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 (5, 5, 5, 5), new Dimension (100, 30), false, AbstractRegionPainter.PaintContext.CacheMode.NO_CACHING, 1.0, 1.0)); 1017 d.put("Tree:\"Tree.cellRenderer\".contentMargins", new InsetsUIResource (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 (5, 5, 5, 5), new Dimension (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 (5, 5, 5, 5), new Dimension (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 (5, 5, 5, 5), new Dimension (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 (5, 5, 5, 5), new Dimension (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 (5, 5, 5, 5), new Dimension (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 (5, 5, 5, 5), new Dimension (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 (5, 5, 5, 5), new Dimension (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 d.put("RootPane.contentMargins", new InsetsUIResource (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 1055 void register(Region region, String prefix) { 1056 if (region == null || prefix == null) { 1058 throw new IllegalArgumentException ( 1059 "Neither Region nor Prefix may be null"); 1060 } 1061 1062 List <LazyStyle> styles = m.get(region); 1064 if (styles == null) { 1065 styles = new LinkedList <LazyStyle>(); 1066 styles.add(new LazyStyle(prefix)); 1067 m.put(region, styles); 1068 } else { 1069 for (LazyStyle s : styles) { 1072 if (prefix.equals(s.prefix)) { 1073 return; 1074 } 1075 } 1076 styles.add(new LazyStyle(prefix)); 1077 } 1078 1079 registeredRegions.put(region.getName(), region); 1081 } 1082 1083 1103 SynthStyle getStyle(JComponent comp, Region r) { 1104 if (comp == null || r == null) { 1106 throw new IllegalArgumentException ( 1107 "Neither comp nor r may be null"); 1108 } 1109 1110 List <LazyStyle> styles = m.get(r); 1113 if (styles == null || styles.size() == 0) { 1114 return defaultStyle; 1115 } 1116 1117 LazyStyle foundStyle = null; 1119 for (LazyStyle s : styles) { 1120 if (s.matches(comp)) { 1121 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 foundStyle == null ? defaultStyle : foundStyle.getStyle(); 1139 } 1140 1141 1145 private void clearStyleCache() { 1146 for (List <LazyStyle> styles : m.values()) { 1147 for (LazyStyle s : styles) { 1148 s.style = null; 1149 } 1150 } 1151 } 1152 1153 1157 1158 1170 public static final class DerivedFont implements UIDefaults.ActiveValue { 1171 private float sizeOffset; 1172 private Boolean bold; 1173 private Boolean italic; 1174 private String parentKey; 1175 1176 1197 public DerivedFont(String key, float sizeOffset, Boolean bold, 1198 Boolean italic) { 1199 if (key == null) { 1201 throw new IllegalArgumentException ("You must specify a key"); 1202 } 1203 1204 this.parentKey = key; 1206 this.sizeOffset = sizeOffset; 1207 this.bold = bold; 1208 this.italic = italic; 1209 } 1210 1211 1214 public Object createValue(UIDefaults defaults) { 1215 Font f = defaults.getFont(parentKey); 1216 if (f != null) { 1217 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 1252 private static final class LazyPainter implements UIDefaults.LazyValue { 1253 private int which; 1254 private AbstractRegionPainter.PaintContext ctx; 1255 private String className; 1256 1257 LazyPainter(String className, int which, Insets insets, 1258 Dimension canvasSize, boolean inverted) { 1259 if (className == null) { 1260 throw new IllegalArgumentException ( 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 className, int which, Insets insets, 1271 Dimension canvasSize, boolean inverted, 1272 AbstractRegionPainter.PaintContext.CacheMode cacheMode, 1273 double maxH, double maxV) { 1274 if (className == null) { 1275 throw new IllegalArgumentException ( 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 createValue(UIDefaults table) { 1286 try { 1287 Class c; 1288 Object cl; 1289 if (table == null || !((cl = table.get("ClassLoader")) 1291 instanceof ClassLoader )) { 1292 cl = Thread.currentThread(). 1293 getContextClassLoader(); 1294 if (cl == null) { 1295 cl = ClassLoader.getSystemClassLoader(); 1297 } 1298 } 1299 1300 c = Class.forName(className, true, (ClassLoader )cl); 1301 Constructor constructor = c.getConstructor( 1302 AbstractRegionPainter.PaintContext.class, int.class); 1303 if (constructor == null) { 1304 throw new NullPointerException ( 1305 "Failed to find the constructor for the class: " + 1306 className); 1307 } 1308 return constructor.newInstance(ctx, which); 1309 } catch (Exception e) { 1310 e.printStackTrace(); 1311 return null; 1312 } 1313 } 1314 } 1315 1316 1331 private final class LazyStyle { 1332 1336 private String prefix; 1337 1340 private boolean simple = true; 1341 1349 private Part[] parts; 1350 1353 private NimbusStyle style; 1354 1355 1360 private LazyStyle(String prefix) { 1361 if (prefix == null) { 1362 throw new IllegalArgumentException ( 1363 "The prefix must not be null"); 1364 } 1365 1366 this.prefix = prefix; 1367 1368 String 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 List <String > 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 1401 SynthStyle getStyle() { 1402 style = new NimbusStyle(prefix); 1406 return style; 1408 } 1409 1410 1418 boolean matches(JComponent c) { 1419 return matches(c, parts.length - 1); 1420 } 1421 1422 private boolean matches(Component c, int partIndex) { 1423 if (partIndex < 0) return true; 1424 if (c == null) return false; 1425 1427 String name = c.getName(); 1428 if (parts[partIndex].named && parts[partIndex].s.equals(name)) { 1429 return matches(c.getParent(), partIndex - 1); 1431 } else if (!parts[partIndex].named) { 1432 Class clazz = parts[partIndex].c; 1436 if (clazz != null && clazz.isAssignableFrom(c.getClass())) { 1437 return matches(c.getParent(), partIndex - 1); 1439 } else if (clazz == null && 1440 registeredRegions.containsKey(parts[partIndex].s)) { 1441 Region r = registeredRegions.get(parts[partIndex].s); 1442 Component parent = r.isSubregion() ? c : c.getParent(); 1443 if (r == Region.INTERNAL_FRAME_TITLE_PANE && parent != null 1446 && parent instanceof JInternalFrame.JDesktopIcon ) { 1447 JInternalFrame.JDesktopIcon icon = 1448 (JInternalFrame.JDesktopIcon ) parent; 1449 parent = icon.getInternalFrame(); 1450 } 1451 return matches(parent, partIndex - 1); 1453 } 1454 } 1455 1456 return false; 1457 } 1458 1459 1466 private List <String > split(String prefix) { 1467 List <String > parts = new ArrayList <String >(); 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 ( 1484 "Malformed prefix: " + prefix); 1485 } 1486 continue; 1487 } 1488 1489 if (c == ':' && !inquotes && bracketCount == 0) { 1490 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 s; 1505 private boolean named; 1507 private Class c; 1508 1509 Part(String 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 try { 1518 c = Class.forName("javax.swing.J" + s); 1519 } catch (Exception e) { 1520 } 1521 try { 1522 c = Class.forName(s.replace("_", ".")); 1523 } catch (Exception e) { 1524 } 1525 } 1526 } 1527 } 1528 } 1529 1530 1541 public DerivedColor getDerivedColor(String uiDefaultParentName, 1542 float hOffset, float sOffset, 1543 float bOffset, int aOffset){ 1544 return getDerivedColor(uiDefaultParentName, hOffset, sOffset, 1545 bOffset, aOffset, true); 1546 } 1547 1548 1561 public DerivedColor getDerivedColor(String 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 color.rederiveColor(); 1578 color.addPropertyChangeListener(defaultsListener); 1580 derivedColorsMap.put(new DerivedColorKey(uiDefaultParentName, 1582 hOffset, sOffset, bOffset, aOffset, uiResource),color); 1583 } 1584 return color; 1585 } 1586 1587 1590 private class DerivedColorKey { 1591 private String uiDefaultParentName; 1592 private float hOffset, sOffset, bOffset; 1593 private int aOffset; 1594 private boolean uiResource; 1595 1596 DerivedColorKey(){} 1597 1598 DerivedColorKey(String 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 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 1616 public boolean equals(Object 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 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 1650 private class DefaultsListener implements PropertyChangeListener { 1651 public void propertyChange(PropertyChangeEvent evt) { 1652 Object src = evt.getSource(); 1653 String key = evt.getPropertyName(); 1654 if (key.equals("lookAndFeel")){ 1655 for (DerivedColor color : derivedColorsMap.values()) { 1660 color.rederiveColor(); 1661 } 1662 } else if (src instanceof DerivedColor && key.equals("rgb")) { 1663 DerivedColor parentColor = (DerivedColor)src; 1669 String parentKey = null; 1670 Set <Map.Entry <Object ,Object >> entries = 1671 UIManager.getDefaults().entrySet(); 1672 1673 for (Map.Entry entry : entries) { 1674 Object value = entry.getValue(); 1675 if (value == parentColor) { 1676 parentKey = entry.getKey().toString(); 1677 } 1678 } 1679 1680 if (parentKey == null) { 1681 return; 1684 } 1685 1686 for (Map.Entry entry : entries) { 1687 Object 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 , UIResource { 1700 private Insets insets; 1701 private Painter painter; 1702 private String painterKey; 1703 1704 PainterBorder(String painterKey, Insets insets) { 1705 this.insets = insets; 1706 this.painterKey = painterKey; 1707 } 1708 1709 public void paintBorder(Component c, Graphics 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 ) 1717 painter.paint((Graphics2D )g, c, w, h); 1718 else { 1719 BufferedImage img = new BufferedImage (w, h, TYPE_INT_ARGB); 1720 Graphics2D 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 getBorderInsets(Component c) { 1730 return (Insets )insets.clone(); 1731 } 1732 1733 public boolean isBorderOpaque() { 1734 return false; 1735 } 1736 } 1737} 1738 | Popular Tags |