protected void initClassDefaults(UIDefaults table){
  super.initClassDefaults(table);
  final String windowsPackageName="com.sun.java.swing.plaf.windows.";
  Object[] uiDefaults={"ButtonUI",windowsPackageName + "WindowsButtonUI","CheckBoxUI",windowsPackageName + "WindowsCheckBoxUI","CheckBoxMenuItemUI",windowsPackageName + "WindowsCheckBoxMenuItemUI","LabelUI",windowsPackageName + "WindowsLabelUI","RadioButtonUI",windowsPackageName + "WindowsRadioButtonUI","RadioButtonMenuItemUI",windowsPackageName + "WindowsRadioButtonMenuItemUI","ToggleButtonUI",windowsPackageName + "WindowsToggleButtonUI","ProgressBarUI",windowsPackageName + "WindowsProgressBarUI","SliderUI",windowsPackageName + "WindowsSliderUI","SeparatorUI",windowsPackageName + "WindowsSeparatorUI","SplitPaneUI",windowsPackageName + "WindowsSplitPaneUI","SpinnerUI",windowsPackageName + "WindowsSpinnerUI","TabbedPaneUI",windowsPackageName + "WindowsTabbedPaneUI","TextAreaUI",windowsPackageName + "WindowsTextAreaUI","TextFieldUI",windowsPackageName + "WindowsTextFieldUI","PasswordFieldUI",windowsPackageName + "WindowsPasswordFieldUI","TextPaneUI",windowsPackageName + "WindowsTextPaneUI","EditorPaneUI",windowsPackageName + "WindowsEditorPaneUI","TreeUI",windowsPackageName + "WindowsTreeUI","ToolBarUI",windowsPackageName + "WindowsToolBarUI","ToolBarSeparatorUI",windowsPackageName + "WindowsToolBarSeparatorUI","ComboBoxUI",windowsPackageName + "WindowsComboBoxUI","TableHeaderUI",windowsPackageName + "WindowsTableHeaderUI","InternalFrameUI",windowsPackageName + "WindowsInternalFrameUI","DesktopPaneUI",windowsPackageName + "WindowsDesktopPaneUI","DesktopIconUI",windowsPackageName + "WindowsDesktopIconUI","FileChooserUI",windowsPackageName + "WindowsFileChooserUI","MenuUI",windowsPackageName + "WindowsMenuUI","MenuItemUI",windowsPackageName + "WindowsMenuItemUI","MenuBarUI",windowsPackageName + "WindowsMenuBarUI","PopupMenuUI",windowsPackageName + "WindowsPopupMenuUI","PopupMenuSeparatorUI",windowsPackageName + "WindowsPopupMenuSeparatorUI","ScrollBarUI",windowsPackageName + "WindowsScrollBarUI","RootPaneUI",windowsPackageName + "WindowsRootPaneUI"};
  table.putDefaults(uiDefaults);
}

protected void initClassDefaults ( UIDefaults table ) { super . initClassDefaults ( table ) ; final String windowsPackageName = "com.sun.java.swing.plaf.windows." ; Object [ ] uiDefaults = { "ButtonUI" , windowsPackageName + "WindowsButtonUI" , "CheckBoxUI" , windowsPackageName + "WindowsCheckBoxUI" , "CheckBoxMenuItemUI" , windowsPackageName + "WindowsCheckBoxMenuItemUI" , "LabelUI" , windowsPackageName + "WindowsLabelUI" , "RadioButtonUI" , windowsPackageName + "WindowsRadioButtonUI" , "RadioButtonMenuItemUI" , windowsPackageName + "WindowsRadioButtonMenuItemUI" , "ToggleButtonUI" , windowsPackageName + "WindowsToggleButtonUI" , "ProgressBarUI" , windowsPackageName + "WindowsProgressBarUI" , "SliderUI" , windowsPackageName + "WindowsSliderUI" , "SeparatorUI" , windowsPackageName + "WindowsSeparatorUI" , "SplitPaneUI" , windowsPackageName + "WindowsSplitPaneUI" , "SpinnerUI" , windowsPackageName + "WindowsSpinnerUI" , "TabbedPaneUI" , windowsPackageName + "WindowsTabbedPaneUI" , "TextAreaUI" , windowsPackageName + "WindowsTextAreaUI" , "TextFieldUI" , windowsPackageName + "WindowsTextFieldUI" , "PasswordFieldUI" , windowsPackageName + "WindowsPasswordFieldUI" , "TextPaneUI" , windowsPackageName + "WindowsTextPaneUI" , "EditorPaneUI" , windowsPackageName + "WindowsEditorPaneUI" , "TreeUI" , windowsPackageName + "WindowsTreeUI" , "ToolBarUI" , windowsPackageName + "WindowsToolBarUI" , "ToolBarSeparatorUI" , windowsPackageName + "WindowsToolBarSeparatorUI" , "ComboBoxUI" , windowsPackageName + "WindowsComboBoxUI" , "TableHeaderUI" , windowsPackageName + "WindowsTableHeaderUI" , "InternalFrameUI" , windowsPackageName + "WindowsInternalFrameUI" , "DesktopPaneUI" , windowsPackageName + "WindowsDesktopPaneUI" , "DesktopIconUI" , windowsPackageName + "WindowsDesktopIconUI" , "FileChooserUI" , windowsPackageName + "WindowsFileChooserUI" , "MenuUI" , windowsPackageName + "WindowsMenuUI" , "MenuItemUI" , windowsPackageName + "WindowsMenuItemUI" , "MenuBarUI" , windowsPackageName + "WindowsMenuBarUI" , "PopupMenuUI" , windowsPackageName + "WindowsPopupMenuUI" , "PopupMenuSeparatorUI" , windowsPackageName + "WindowsPopupMenuSeparatorUI" , "ScrollBarUI" , windowsPackageName + "WindowsScrollBarUI" , "RootPaneUI" , windowsPackageName + "WindowsRootPaneUI" } ; table . putDefaults ( uiDefaults ) ; }
initialize the uiclassid to basiccomponentui mapping . the jcomponent classes define their own uiclassid constants ( see abstractcomponent . getuiclassid ) . this table must map those constants to a basiccomponentui class of the appropriate type .
