if (useNative) { defaults.put("activeCaption", new ColorUIResource(SystemColor.ACTIVE_CAPTION)); defaults.put("activeCaptionBorder", new ColorUIResource(SystemColor.ACTIVE_CAPTION_BORDER)); defaults.put("activeCaptionText", new ColorUIResource(SystemColor.ACTIVE_CAPTION_TEXT)); defaults.put("control", new ColorUIResource(SystemColor.CONTROL)); defaults.put("controlDkShadow", new ColorUIResource(SystemColor.CONTROL_DK_SHADOW)); defaults.put("controlHighlight", new ColorUIResource(SystemColor.CONTROL_HIGHLIGHT)); defaults.put("controlLtHighlight", new ColorUIResource(SystemColor.CONTROL_LT_HIGHLIGHT)); defaults.put("controlShadow", new ColorUIResource(SystemColor.CONTROL_SHADOW)); defaults.put("controlText", new ColorUIResource(SystemColor.CONTROL_TEXT)); defaults.put("desktop", new ColorUIResource(SystemColor.DESKTOP)); defaults.put("inactiveCaption", new ColorUIResource(SystemColor.INACTIVE_CAPTION)); defaults.put("inactiveCaptionBorder", new ColorUIResource(SystemColor.INACTIVE_CAPTION_BORDER)); defaults.put("inactiveCaptionText", new ColorUIResource(SystemColor.INACTIVE_CAPTION_TEXT)); defaults.put("info", new ColorUIResource(SystemColor.INFO)); defaults.put("infoText", new ColorUIResource(SystemColor.INFO_TEXT)); defaults.put("menu", new ColorUIResource(SystemColor.MENU)); defaults.put("menuText", new ColorUIResource(SystemColor.MENU_TEXT)); defaults.put("scrollbar", new ColorUIResource(SystemColor.SCROLLBAR)); defaults.put("text", new ColorUIResource(SystemColor.TEXT)); defaults.put("textHighlight", new ColorUIResource(SystemColor.TEXT_HIGHLIGHT)); defaults.put("textHighlightText", new ColorUIResource(SystemColor.TEXT_HIGHLIGHT_TEXT)); defaults.put("textInactiveText", new ColorUIResource(SystemColor.TEXT_INACTIVE_TEXT)); defaults.put("textText", new ColorUIResource(SystemColor.TEXT_TEXT)); defaults.put("window", new ColorUIResource(SystemColor.WINDOW)); defaults.put("windowBorder", new ColorUIResource(SystemColor.WINDOW_BORDER)); defaults.put("windowText", new ColorUIResource(SystemColor.WINDOW_TEXT)); } else { for (int i = 0; i < systemColors.length; i += 2) { Color color = Color.BLACK; try { color = Color.decode(systemColors[i + 1]); } catch (NumberFormatException e) { e.printStackTrace(); } defaults.put(systemColors[i], new ColorUIResource(color)); } }
  protected void loadSystemColors(UIDefaults defaults, String[] systemColors,                                  boolean useNative)    throws NotImplementedException  {    // TODO  }