671 t -> BasicBorders.getTextFieldBorder(); |
671 t -> BasicBorders.getTextFieldBorder(); |
672 |
672 |
673 Object editorMargin = threeInsets; |
673 Object editorMargin = threeInsets; |
674 |
674 |
675 Object caretBlinkRate = fiveHundred; |
675 Object caretBlinkRate = fiveHundred; |
676 Integer four = new Integer(4); |
|
677 |
676 |
678 Object[] allAuditoryCues = new Object[] { |
677 Object[] allAuditoryCues = new Object[] { |
679 "CheckBoxMenuItem.commandSound", |
678 "CheckBoxMenuItem.commandSound", |
680 "InternalFrame.closeSound", |
679 "InternalFrame.closeSound", |
681 "InternalFrame.maximizeSound", |
680 "InternalFrame.maximizeSound", |
712 "Button.darkShadow", controlDkShadow, |
711 "Button.darkShadow", controlDkShadow, |
713 "Button.light", controlHighlight, |
712 "Button.light", controlHighlight, |
714 "Button.highlight", controlLtHighlight, |
713 "Button.highlight", controlLtHighlight, |
715 "Button.border", buttonBorder, |
714 "Button.border", buttonBorder, |
716 "Button.margin", new InsetsUIResource(2, 14, 2, 14), |
715 "Button.margin", new InsetsUIResource(2, 14, 2, 14), |
717 "Button.textIconGap", four, |
716 "Button.textIconGap", 4, |
718 "Button.textShiftOffset", zero, |
717 "Button.textShiftOffset", zero, |
719 "Button.focusInputMap", new UIDefaults.LazyInputMap(new Object[] { |
718 "Button.focusInputMap", new UIDefaults.LazyInputMap(new Object[] { |
720 "SPACE", "pressed", |
719 "SPACE", "pressed", |
721 "released SPACE", "released", |
720 "released SPACE", "released", |
722 "ENTER", "pressed", |
721 "ENTER", "pressed", |
730 "ToggleButton.darkShadow", controlDkShadow, |
729 "ToggleButton.darkShadow", controlDkShadow, |
731 "ToggleButton.light", controlHighlight, |
730 "ToggleButton.light", controlHighlight, |
732 "ToggleButton.highlight", controlLtHighlight, |
731 "ToggleButton.highlight", controlLtHighlight, |
733 "ToggleButton.border", buttonToggleBorder, |
732 "ToggleButton.border", buttonToggleBorder, |
734 "ToggleButton.margin", new InsetsUIResource(2, 14, 2, 14), |
733 "ToggleButton.margin", new InsetsUIResource(2, 14, 2, 14), |
735 "ToggleButton.textIconGap", four, |
734 "ToggleButton.textIconGap", 4, |
736 "ToggleButton.textShiftOffset", zero, |
735 "ToggleButton.textShiftOffset", zero, |
737 "ToggleButton.focusInputMap", |
736 "ToggleButton.focusInputMap", |
738 new UIDefaults.LazyInputMap(new Object[] { |
737 new UIDefaults.LazyInputMap(new Object[] { |
739 "SPACE", "pressed", |
738 "SPACE", "pressed", |
740 "released SPACE", "released" |
739 "released SPACE", "released" |
747 "RadioButton.darkShadow", controlDkShadow, |
746 "RadioButton.darkShadow", controlDkShadow, |
748 "RadioButton.light", controlHighlight, |
747 "RadioButton.light", controlHighlight, |
749 "RadioButton.highlight", controlLtHighlight, |
748 "RadioButton.highlight", controlLtHighlight, |
750 "RadioButton.border", radioButtonBorder, |
749 "RadioButton.border", radioButtonBorder, |
751 "RadioButton.margin", twoInsets, |
750 "RadioButton.margin", twoInsets, |
752 "RadioButton.textIconGap", four, |
751 "RadioButton.textIconGap", 4, |
753 "RadioButton.textShiftOffset", zero, |
752 "RadioButton.textShiftOffset", zero, |
754 "RadioButton.icon", radioButtonIcon, |
753 "RadioButton.icon", radioButtonIcon, |
755 "RadioButton.focusInputMap", |
754 "RadioButton.focusInputMap", |
756 new UIDefaults.LazyInputMap(new Object[] { |
755 new UIDefaults.LazyInputMap(new Object[] { |
757 "SPACE", "pressed", |
756 "SPACE", "pressed", |
762 "CheckBox.font", dialogPlain12, |
761 "CheckBox.font", dialogPlain12, |
763 "CheckBox.background", control, |
762 "CheckBox.background", control, |
764 "CheckBox.foreground", controlText, |
763 "CheckBox.foreground", controlText, |
765 "CheckBox.border", radioButtonBorder, |
764 "CheckBox.border", radioButtonBorder, |
766 "CheckBox.margin", twoInsets, |
765 "CheckBox.margin", twoInsets, |
767 "CheckBox.textIconGap", four, |
766 "CheckBox.textIconGap", 4, |
768 "CheckBox.textShiftOffset", zero, |
767 "CheckBox.textShiftOffset", zero, |
769 "CheckBox.icon", checkBoxIcon, |
768 "CheckBox.icon", checkBoxIcon, |
770 "CheckBox.focusInputMap", |
769 "CheckBox.focusInputMap", |
771 new UIDefaults.LazyInputMap(new Object[] { |
770 new UIDefaults.LazyInputMap(new Object[] { |
772 "SPACE", "pressed", |
771 "SPACE", "pressed", |
1085 "Menu.border", marginBorder, |
1084 "Menu.border", marginBorder, |
1086 "Menu.borderPainted", Boolean.FALSE, |
1085 "Menu.borderPainted", Boolean.FALSE, |
1087 "Menu.margin", twoInsets, |
1086 "Menu.margin", twoInsets, |
1088 "Menu.checkIcon", menuItemCheckIcon, |
1087 "Menu.checkIcon", menuItemCheckIcon, |
1089 "Menu.arrowIcon", menuArrowIcon, |
1088 "Menu.arrowIcon", menuArrowIcon, |
1090 "Menu.menuPopupOffsetX", new Integer(0), |
1089 "Menu.menuPopupOffsetX", 0, |
1091 "Menu.menuPopupOffsetY", new Integer(0), |
1090 "Menu.menuPopupOffsetY", 0, |
1092 "Menu.submenuPopupOffsetX", new Integer(0), |
1091 "Menu.submenuPopupOffsetX", 0, |
1093 "Menu.submenuPopupOffsetY", new Integer(0), |
1092 "Menu.submenuPopupOffsetY", 0, |
1094 "Menu.shortcutKeys", new int[]{ |
1093 "Menu.shortcutKeys", new int[]{ |
1095 SwingUtilities2.getSystemMnemonicKeyMask() |
1094 SwingUtilities2.getSystemMnemonicKeyMask() |
1096 }, |
1095 }, |
1097 "Menu.crossMenuMnemonic", Boolean.TRUE, |
1096 "Menu.crossMenuMnemonic", Boolean.TRUE, |
1098 // Menu.cancelMode affects the cancel menu action behaviour; |
1097 // Menu.cancelMode affects the cancel menu action behaviour; |
1186 "ProgressBar.foreground", textHighlight, |
1185 "ProgressBar.foreground", textHighlight, |
1187 "ProgressBar.background", control, |
1186 "ProgressBar.background", control, |
1188 "ProgressBar.selectionForeground", control, |
1187 "ProgressBar.selectionForeground", control, |
1189 "ProgressBar.selectionBackground", textHighlight, |
1188 "ProgressBar.selectionBackground", textHighlight, |
1190 "ProgressBar.border", progressBarBorder, |
1189 "ProgressBar.border", progressBarBorder, |
1191 "ProgressBar.cellLength", new Integer(1), |
1190 "ProgressBar.cellLength", 1, |
1192 "ProgressBar.cellSpacing", zero, |
1191 "ProgressBar.cellSpacing", zero, |
1193 "ProgressBar.repaintInterval", new Integer(50), |
1192 "ProgressBar.repaintInterval", 50, |
1194 "ProgressBar.cycleTime", new Integer(3000), |
1193 "ProgressBar.cycleTime", 3000, |
1195 "ProgressBar.horizontalSize", new DimensionUIResource(146, 12), |
1194 "ProgressBar.horizontalSize", new DimensionUIResource(146, 12), |
1196 "ProgressBar.verticalSize", new DimensionUIResource(12, 146), |
1195 "ProgressBar.verticalSize", new DimensionUIResource(12, 146), |
1197 |
1196 |
1198 // *** Separator |
1197 // *** Separator |
1199 "Separator.shadow", controlShadow, // DEPRECATED - DO NOT USE! |
1198 "Separator.shadow", controlShadow, // DEPRECATED - DO NOT USE! |
1234 "RIGHT", "negativeUnitIncrement", |
1233 "RIGHT", "negativeUnitIncrement", |
1235 "KP_RIGHT", "negativeUnitIncrement", |
1234 "KP_RIGHT", "negativeUnitIncrement", |
1236 "LEFT", "positiveUnitIncrement", |
1235 "LEFT", "positiveUnitIncrement", |
1237 "KP_LEFT", "positiveUnitIncrement", |
1236 "KP_LEFT", "positiveUnitIncrement", |
1238 }), |
1237 }), |
1239 "ScrollBar.width", new Integer(16), |
1238 "ScrollBar.width", 16, |
1240 |
1239 |
1241 "ScrollPane.font", dialogPlain12, |
1240 "ScrollPane.font", dialogPlain12, |
1242 "ScrollPane.background", control, |
1241 "ScrollPane.background", control, |
1243 "ScrollPane.foreground", controlText, |
1242 "ScrollPane.foreground", controlText, |
1244 "ScrollPane.border", textFieldBorder, |
1243 "ScrollPane.border", textFieldBorder, |
1330 "SplitPane.background", control, |
1329 "SplitPane.background", control, |
1331 "SplitPane.highlight", controlLtHighlight, |
1330 "SplitPane.highlight", controlLtHighlight, |
1332 "SplitPane.shadow", controlShadow, |
1331 "SplitPane.shadow", controlShadow, |
1333 "SplitPane.darkShadow", controlDkShadow, |
1332 "SplitPane.darkShadow", controlDkShadow, |
1334 "SplitPane.border", splitPaneBorder, |
1333 "SplitPane.border", splitPaneBorder, |
1335 "SplitPane.dividerSize", new Integer(7), |
1334 "SplitPane.dividerSize", 7, |
1336 "SplitPaneDivider.border", splitPaneDividerBorder, |
1335 "SplitPaneDivider.border", splitPaneDividerBorder, |
1337 "SplitPaneDivider.draggingColor", darkGray, |
1336 "SplitPaneDivider.draggingColor", darkGray, |
1338 "SplitPane.ancestorInputMap", |
1337 "SplitPane.ancestorInputMap", |
1339 new UIDefaults.LazyInputMap(new Object[] { |
1338 new UIDefaults.LazyInputMap(new Object[] { |
1340 "UP", "negativeIncrement", |
1339 "UP", "negativeIncrement", |
1361 "TabbedPane.light", controlHighlight, |
1360 "TabbedPane.light", controlHighlight, |
1362 "TabbedPane.shadow", controlShadow, |
1361 "TabbedPane.shadow", controlShadow, |
1363 "TabbedPane.darkShadow", controlDkShadow, |
1362 "TabbedPane.darkShadow", controlDkShadow, |
1364 "TabbedPane.selected", null, |
1363 "TabbedPane.selected", null, |
1365 "TabbedPane.focus", controlText, |
1364 "TabbedPane.focus", controlText, |
1366 "TabbedPane.textIconGap", four, |
1365 "TabbedPane.textIconGap", 4, |
1367 |
1366 |
1368 // Causes tabs to be painted on top of the content area border. |
1367 // Causes tabs to be painted on top of the content area border. |
1369 // The amount of overlap is then controlled by tabAreaInsets.bottom, |
1368 // The amount of overlap is then controlled by tabAreaInsets.bottom, |
1370 // which is zero by default |
1369 // which is zero by default |
1371 "TabbedPane.tabsOverlapBorder", Boolean.FALSE, |
1370 "TabbedPane.tabsOverlapBorder", Boolean.FALSE, |
1375 "TabbedPane.selectedLabelShift", -1, |
1374 "TabbedPane.selectedLabelShift", -1, |
1376 "TabbedPane.tabInsets", tabbedPaneTabInsets, |
1375 "TabbedPane.tabInsets", tabbedPaneTabInsets, |
1377 "TabbedPane.selectedTabPadInsets", tabbedPaneTabPadInsets, |
1376 "TabbedPane.selectedTabPadInsets", tabbedPaneTabPadInsets, |
1378 "TabbedPane.tabAreaInsets", tabbedPaneTabAreaInsets, |
1377 "TabbedPane.tabAreaInsets", tabbedPaneTabAreaInsets, |
1379 "TabbedPane.contentBorderInsets", tabbedPaneContentBorderInsets, |
1378 "TabbedPane.contentBorderInsets", tabbedPaneContentBorderInsets, |
1380 "TabbedPane.tabRunOverlay", new Integer(2), |
1379 "TabbedPane.tabRunOverlay", 2, |
1381 "TabbedPane.tabsOpaque", Boolean.TRUE, |
1380 "TabbedPane.tabsOpaque", Boolean.TRUE, |
1382 "TabbedPane.contentOpaque", Boolean.TRUE, |
1381 "TabbedPane.contentOpaque", Boolean.TRUE, |
1383 "TabbedPane.focusInputMap", |
1382 "TabbedPane.focusInputMap", |
1384 new UIDefaults.LazyInputMap(new Object[] { |
1383 new UIDefaults.LazyInputMap(new Object[] { |
1385 "RIGHT", "navigateRight", |
1384 "RIGHT", "navigateRight", |
1735 "Tree.selectionForeground", textHighlightText, |
1734 "Tree.selectionForeground", textHighlightText, |
1736 "Tree.selectionBackground", textHighlight, |
1735 "Tree.selectionBackground", textHighlight, |
1737 "Tree.selectionBorderColor", black, |
1736 "Tree.selectionBorderColor", black, |
1738 "Tree.dropLineColor", controlShadow, |
1737 "Tree.dropLineColor", controlShadow, |
1739 "Tree.editorBorder", blackLineBorder, |
1738 "Tree.editorBorder", blackLineBorder, |
1740 "Tree.leftChildIndent", new Integer(7), |
1739 "Tree.leftChildIndent", 7, |
1741 "Tree.rightChildIndent", new Integer(13), |
1740 "Tree.rightChildIndent", 13, |
1742 "Tree.rowHeight", new Integer(16), |
1741 "Tree.rowHeight", 16, |
1743 "Tree.scrollsOnExpand", Boolean.TRUE, |
1742 "Tree.scrollsOnExpand", Boolean.TRUE, |
1744 "Tree.openIcon", SwingUtilities2.makeIcon(getClass(), |
1743 "Tree.openIcon", SwingUtilities2.makeIcon(getClass(), |
1745 BasicLookAndFeel.class, |
1744 BasicLookAndFeel.class, |
1746 "icons/TreeOpen.gif"), |
1745 "icons/TreeOpen.gif"), |
1747 "Tree.closedIcon", SwingUtilities2.makeIcon(getClass(), |
1746 "Tree.closedIcon", SwingUtilities2.makeIcon(getClass(), |