| 1 |
/* |
| 2 |
* @(#)EclipseWindowsUtils.java |
| 3 |
* |
| 4 |
* Copyright 2002 JIDE Software Inc. All rights reserved. |
| 5 |
*/ |
| 6 |
package com.jidesoft.plaf.eclipse; |
| 7 |
|
| 8 |
import com.jidesoft.icons.IconsFactory; |
| 9 |
import com.jidesoft.icons.JideIconsFactory; |
| 10 |
import com.jidesoft.icons.MenuCheckIcon; |
| 11 |
import com.jidesoft.plaf.ExtWindowsDesktopProperty; |
| 12 |
import com.jidesoft.plaf.LookAndFeelFactory; |
| 13 |
import com.jidesoft.plaf.UIDefaultsLookup; |
| 14 |
import com.jidesoft.plaf.WindowsDesktopProperty; |
| 15 |
import com.jidesoft.plaf.basic.Painter; |
| 16 |
import com.jidesoft.plaf.basic.ThemePainter; |
| 17 |
import com.jidesoft.plaf.vsnet.ConvertListener; |
| 18 |
import com.jidesoft.plaf.vsnet.HeaderCellBorder; |
| 19 |
import com.jidesoft.plaf.windows.WindowsIconFactory; |
| 20 |
import com.jidesoft.swing.JideButton; |
| 21 |
import com.jidesoft.swing.JideSwingUtilities; |
| 22 |
import com.jidesoft.swing.JideTabbedPane; |
| 23 |
|
| 24 |
import javax.swing.*; |
| 25 |
import javax.swing.border.Border; |
| 26 |
import javax.swing.plaf.BorderUIResource; |
| 27 |
import javax.swing.plaf.ColorUIResource; |
| 28 |
import javax.swing.plaf.DimensionUIResource; |
| 29 |
import javax.swing.plaf.InsetsUIResource; |
| 30 |
import javax.swing.plaf.basic.BasicBorders; |
| 31 |
import java.awt.*; |
| 32 |
import java.beans.Beans; |
| 33 |
|
| 34 |
/** |
| 35 |
* Utility Class for WindowsLookAndFeel to add Eclipse related LookAndFeel style |
| 36 |
*/ |
| 37 |
public class EclipseWindowsUtils extends EclipseLookAndFeelExtension { |
| 38 |
|
| 39 |
/** |
| 40 |
* Initializes class defaults with menu components UIDefaults. |
| 41 |
* |
| 42 |
* @param table ui default table |
| 43 |
*/ |
| 44 |
public static void initClassDefaultsWithMenu(UIDefaults table) { |
| 45 |
EclipseLookAndFeelExtension.initClassDefaultsWithMenu(table); |
| 46 |
initClassDefaults(table); |
| 47 |
} |
| 48 |
|
| 49 |
/** |
| 50 |
* Initializes class defaults. |
| 51 |
* |
| 52 |
* @param table ui default table |
| 53 |
*/ |
| 54 |
public static void initClassDefaults(UIDefaults table) { |
| 55 |
EclipseLookAndFeelExtension.initClassDefaults(table); |
| 56 |
|
| 57 |
final String windowsPackageName = "com.jidesoft.plaf.windows."; |
| 58 |
|
| 59 |
int products = LookAndFeelFactory.getProductsUsed(); |
| 60 |
|
| 61 |
table.put("JidePopupMenuUI", windowsPackageName + "WindowsJidePopupMenuUI"); |
| 62 |
table.put("RangeSliderUI", windowsPackageName + "WindowsRangeSliderUI"); |
| 63 |
|
| 64 |
if ((products & PRODUCT_GRIDS) != 0) { |
| 65 |
table.put("CellStyleTableHeaderUI", windowsPackageName + "WindowsCellStyleTableHeaderUI"); |
| 66 |
table.put("SortableTableHeaderUI", windowsPackageName + "WindowsSortableTableHeaderUI"); |
| 67 |
table.put("NestedTableHeaderUI", windowsPackageName + "WindowsNestedTableHeaderUI"); |
| 68 |
table.put("EditableTableHeaderUI", windowsPackageName + "WindowsEditableTableHeaderUI"); |
| 69 |
table.put("AutoFilterTableHeaderUI", windowsPackageName + "WindowsAutoFilterTableHeaderUI"); |
| 70 |
table.put("GroupTableHeaderUI", windowsPackageName + "WindowsGroupTableHeaderUI"); |
| 71 |
table.put("ExComboBoxUI", windowsPackageName + "WindowsExComboBoxUI"); |
| 72 |
} |
| 73 |
} |
| 74 |
|
| 75 |
/** |
| 76 |
* Initializes components defaults. |
| 77 |
* |
| 78 |
* @param table ui default table |
| 79 |
*/ |
| 80 |
public static void initComponentDefaults(UIDefaults table) { |
| 81 |
Toolkit toolkit = Toolkit.getDefaultToolkit(); |
| 82 |
|
| 83 |
WindowsDesktopProperty defaultTextColor = new WindowsDesktopProperty("win.button.textColor", UIDefaultsLookup.get("controlText"), toolkit); |
| 84 |
WindowsDesktopProperty defaultBackgroundColor = new WindowsDesktopProperty("win.3d.backgroundColor", UIDefaultsLookup.get("control"), toolkit); |
| 85 |
WindowsDesktopProperty defaultHighlightColor = new WindowsDesktopProperty("win.3d.lightColor", UIDefaultsLookup.get("controlHighlight"), toolkit); |
| 86 |
WindowsDesktopProperty defaultLtHighlightColor = new WindowsDesktopProperty("win.3d.highlightColor", UIDefaultsLookup.get("controlLtHighlight"), toolkit); |
| 87 |
WindowsDesktopProperty defaultShadowColor = new WindowsDesktopProperty("win.3d.shadowColor", UIDefaultsLookup.get("controlShadow"), toolkit); |
| 88 |
WindowsDesktopProperty defaultDarkShadowColor = new WindowsDesktopProperty("win.3d.darkShadowColor", UIDefaultsLookup.get("controlDkShadow"), toolkit); |
| 89 |
WindowsDesktopProperty activeTitleTextColor = new WindowsDesktopProperty("win.frame.captionTextColor", UIDefaultsLookup.get("activeCaptionText"), toolkit); |
| 90 |
WindowsDesktopProperty activeTitleBackgroundColor = new WindowsDesktopProperty("win.frame.activeCaptionColor", UIDefaultsLookup.get("activeCaption"), toolkit); |
| 91 |
WindowsDesktopProperty activeTitleBarGradientColor = new WindowsDesktopProperty("win.frame.activeCaptionGradientColor", UIDefaultsLookup.get("activeCaption"), toolkit); |
| 92 |
WindowsDesktopProperty inactiveTitleTextColor = new WindowsDesktopProperty("win.frame.inactiveCaptionTextColor", UIDefaultsLookup.get("controlText"), toolkit); |
| 93 |
WindowsDesktopProperty inactiveTitleBackgroundColor = new WindowsDesktopProperty("win.3d.shadowColor", UIDefaultsLookup.get("controlShadow"), toolkit); |
| 94 |
WindowsDesktopProperty mdiBackgroundColor = new WindowsDesktopProperty("win.mdi.backgroundColor", UIDefaultsLookup.get("controlShadow"), toolkit); |
| 95 |
|
| 96 |
WindowsDesktopProperty highContrast = new WindowsDesktopProperty("win.highContrast.on", UIDefaultsLookup.get("highContrast"), toolkit); |
| 97 |
|
| 98 |
Object controlFont = JideSwingUtilities.getControlFont(toolkit, table); |
| 99 |
Object toolbarFont = JideSwingUtilities.getMenuFont(toolkit, table); |
| 100 |
Object boldFont = JideSwingUtilities.getBoldFont(toolkit, table); |
| 101 |
|
| 102 |
Border shadowBorder = BorderFactory.createCompoundBorder(new ShadowBorder(null, null, new Color(171, 168, 165), new Color(143, 141, 138), new Insets(0, 0, 2, 2)), |
| 103 |
BorderFactory.createLineBorder(Color.gray)); |
| 104 |
|
| 105 |
Border documentBorder = shadowBorder; /*BorderFactory.createCompoundBorder( |
| 106 |
shadowBorder, |
| 107 |
BorderFactory.createLineBorder(Color.gray));*/ |
| 108 |
|
| 109 |
Object sunkenBorder = new ExtWindowsDesktopProperty(new String[]{"win.3d.lightColor", "win.3d.highlightColor", "win.3d.shadowColor", "win.3d.darkShadowColor"}, |
| 110 |
new Object[]{UIDefaultsLookup.get("control"), UIDefaultsLookup.get("controlLtHighlight"), UIDefaultsLookup.get("controlShadow"), UIDefaultsLookup.get("controlDkShadow")}, toolkit, new ConvertListener() { |
| 111 |
public Object convert(Object[] obj) { |
| 112 |
return new SunkenBorder((Color) obj[0], (Color) obj[1], (Color) obj[2], (Color) obj[3], |
| 113 |
new Insets(1, 1, 2, 1)); |
| 114 |
} |
| 115 |
}); |
| 116 |
|
| 117 |
Object focusedButtonColor = new ExtWindowsDesktopProperty(new String[]{"win.item.highlightColor"}, new Object[]{UIDefaultsLookup.get("textHighlight")}, toolkit, new ConvertListener() { |
| 118 |
public Object convert(Object[] obj) { |
| 119 |
return new ColorUIResource(EclipseUtils.getFocusedButtonColor((Color) obj[0])); |
| 120 |
} |
| 121 |
}); |
| 122 |
|
| 123 |
Object selectedAndFocusedButtonColor = new ExtWindowsDesktopProperty(new String[]{"win.item.highlightColor"}, new Object[]{UIDefaultsLookup.get("textHighlight")}, toolkit, new ConvertListener() { |
| 124 |
public Object convert(Object[] obj) { |
| 125 |
return new ColorUIResource(EclipseUtils.getSelectedAndFocusedButtonColor((Color) obj[0])); |
| 126 |
} |
| 127 |
}); |
| 128 |
|
| 129 |
Object selectedButtonColor = new ExtWindowsDesktopProperty(new String[]{"win.item.highlightColor"}, new Object[]{UIDefaultsLookup.get("textHighlight")}, toolkit, new ConvertListener() { |
| 130 |
public Object convert(Object[] obj) { |
| 131 |
return new ColorUIResource(EclipseUtils.getSelectedButtonColor((Color) obj[0])); |
| 132 |
} |
| 133 |
}); |
| 134 |
|
| 135 |
WindowsDesktopProperty selectionBackgroundColor = new WindowsDesktopProperty("win.item.highlightColor", UIDefaultsLookup.get("controlShadow"), toolkit); |
| 136 |
|
| 137 |
Painter gripperPainter = new Painter() { |
| 138 |
public void paint(JComponent c, Graphics g, Rectangle rect, int orientation, int state) { |
| 139 |
Object p = UIDefaultsLookup.get("Theme.painter"); |
| 140 |
if (p instanceof ThemePainter) { |
| 141 |
((ThemePainter) p).paintGripper(c, g, rect, orientation, state); |
| 142 |
} |
| 143 |
else { |
| 144 |
EclipsePainter.getInstance().paintGripper(c, g, rect, orientation, state); |
| 145 |
} |
| 146 |
} |
| 147 |
}; |
| 148 |
|
| 149 |
Object buttonBorder = new BasicBorders.MarginBorder(); |
| 150 |
|
| 151 |
Object uiDefaults[] = { |
| 152 |
// common |
| 153 |
"Theme.highContrast", highContrast, |
| 154 |
"Content.background", defaultBackgroundColor, |
| 155 |
|
| 156 |
"JideLabel.font", controlFont, |
| 157 |
"JideLabel.background", defaultBackgroundColor, |
| 158 |
"JideLabel.foreground", defaultTextColor, |
| 159 |
|
| 160 |
"JideButton.selectedAndFocusedBackground", selectedAndFocusedButtonColor, |
| 161 |
"JideButton.focusedBackground", focusedButtonColor, |
| 162 |
"JideButton.selectedBackground", selectedButtonColor, |
| 163 |
"JideButton.borderColor", selectionBackgroundColor, |
| 164 |
|
| 165 |
"JideButton.font", controlFont, |
| 166 |
"JideButton.background", defaultBackgroundColor, |
| 167 |
"JideButton.foreground", defaultTextColor, |
| 168 |
"JideButton.shadow", defaultShadowColor, |
| 169 |
"JideButton.darkShadow", defaultDarkShadowColor, |
| 170 |
"JideButton.light", defaultHighlightColor, |
| 171 |
"JideButton.highlight", defaultLtHighlightColor, |
| 172 |
"JideButton.border", buttonBorder, |
| 173 |
"JideButton.margin", new InsetsUIResource(3, 3, 3, 3), |
| 174 |
"JideButton.textIconGap", 4, |
| 175 |
"JideButton.textShiftOffset", 0, |
| 176 |
"JideButton.focusInputMap", new UIDefaults.LazyInputMap(new Object[]{ |
| 177 |
"SPACE", "pressed", |
| 178 |
"released SPACE", "released", |
| 179 |
"ENTER", "pressed", |
| 180 |
"released ENTER", "released" |
| 181 |
}), |
| 182 |
|
| 183 |
"TristateCheckBox.icon", WindowsIconFactory.getCheckBoxIcon(), |
| 184 |
|
| 185 |
"JideSplitPane.dividerSize", 3, |
| 186 |
"JideSplitPaneDivider.border", new BorderUIResource(BorderFactory.createEmptyBorder()), |
| 187 |
"JideSplitPaneDivider.background", defaultBackgroundColor, |
| 188 |
"JideSplitPaneDivider.gripperPainter", gripperPainter, |
| 189 |
|
| 190 |
"JideTabbedPane.defaultTabShape", JideTabbedPane.SHAPE_ECLIPSE, |
| 191 |
"JideTabbedPane.defaultTabColorTheme", JideTabbedPane.COLOR_THEME_WIN2K, |
| 192 |
|
| 193 |
"JideTabbedPane.tabRectPadding", 2, |
| 194 |
"JideTabbedPane.closeButtonMarginHorizonal", 3, |
| 195 |
"JideTabbedPane.closeButtonMarginVertical", 3, |
| 196 |
"JideTabbedPane.textMarginVertical", 4, |
| 197 |
"JideTabbedPane.noIconMargin", 2, |
| 198 |
"JideTabbedPane.iconMargin", 5, |
| 199 |
"JideTabbedPane.textPadding", 6, |
| 200 |
"JideTabbedPane.buttonSize", 18, |
| 201 |
"JideTabbedPane.buttonMargin", 5, |
| 202 |
"JideTabbedPane.fitStyleBoundSize", 8, |
| 203 |
"JideTabbedPane.fitStyleFirstTabMargin", 0, |
| 204 |
"JideTabbedPane.fitStyleIconMinWidth", 24, |
| 205 |
"JideTabbedPane.fitStyleTextMinWidth", 16, |
| 206 |
"JideTabbedPane.compressedStyleNoIconRectSize", 24, |
| 207 |
"JideTabbedPane.compressedStyleIconMargin", 12, |
| 208 |
"JideTabbedPane.compressedStyleCloseButtonMarginHorizontal", 0, |
| 209 |
"JideTabbedPane.compressedStyleCloseButtonMarginVertical", 0, |
| 210 |
"JideTabbedPane.fixedStyleRectSize", 60, |
| 211 |
"JideTabbedPane.closeButtonMargin", 2, |
| 212 |
"JideTabbedPane.gripLeftMargin", 4, |
| 213 |
"JideTabbedPane.closeButtonMarginSize", 6, |
| 214 |
"JideTabbedPane.closeButtonLeftMargin", 2, |
| 215 |
"JideTabbedPane.closeButtonRightMargin", 2, |
| 216 |
|
| 217 |
"JideTabbedPane.defaultTabBorderShadowColor", new ColorUIResource(115, 109, 99), |
| 218 |
"JideTabbedPane.showFocusIndicator", Boolean.TRUE, |
| 219 |
|
| 220 |
"JideTabbedPane.gripperPainter", gripperPainter, |
| 221 |
"JideTabbedPane.border", new BorderUIResource(shadowBorder), |
| 222 |
"JideTabbedPane.background", defaultBackgroundColor, |
| 223 |
"JideTabbedPane.foreground", defaultTextColor, |
| 224 |
"JideTabbedPane.light", defaultHighlightColor, |
| 225 |
"JideTabbedPane.highlight", defaultLtHighlightColor, |
| 226 |
"JideTabbedPane.shadow", defaultShadowColor, |
| 227 |
"JideTabbedPane.tabInsets", new InsetsUIResource(1, 4, 1, 4), |
| 228 |
"JideTabbedPane.contentBorderInsets", new InsetsUIResource(1, 0, 0, 0), |
| 229 |
"JideTabbedPane.ignoreContentBorderInsetsIfNoTabs", Boolean.FALSE, |
| 230 |
"JideTabbedPane.tabAreaInsets", new InsetsUIResource(0, 0, 0, 0), |
| 231 |
"JideTabbedPane.tabAreaBackground", defaultBackgroundColor, |
| 232 |
"JideTabbedPane.tabAreaBackgroundLt", defaultLtHighlightColor, |
| 233 |
"JideTabbedPane.tabAreaBackgroundDk", defaultBackgroundColor, |
| 234 |
"JideTabbedPane.tabRunOverlay", 2, |
| 235 |
"JideTabbedPane.font", controlFont, |
| 236 |
"JideTabbedPane.selectedTabFont", controlFont, |
| 237 |
"JideTabbedPane.darkShadow", defaultTextColor, |
| 238 |
"JideTabbedPane.selectedTabTextForeground", activeTitleTextColor, |
| 239 |
"JideTabbedPane.unselectedTabTextForeground", defaultTextColor, |
| 240 |
"JideTabbedPane.selectedTabBackground", defaultBackgroundColor, |
| 241 |
"JideTabbedPane.selectedTabBackgroundLt", new ColorUIResource(230, 139, 44), |
| 242 |
"JideTabbedPane.selectedTabBackgroundDk", new ColorUIResource(255, 199, 60), |
| 243 |
"JideTabbedPane.tabListBackground", UIDefaultsLookup.getColor("List.background"), |
| 244 |
"JideTabbedPane.textIconGap", 4, |
| 245 |
"JideTabbedPane.showIconOnTab", Boolean.FALSE, |
| 246 |
"JideTabbedPane.showCloseButtonOnTab", Boolean.TRUE, |
| 247 |
"JideTabbedPane.closeButtonAlignment", SwingConstants.TRAILING, |
| 248 |
"JideTabbedPane.focusInputMap", |
| 249 |
new UIDefaults.LazyInputMap(new Object[]{ |
| 250 |
"RIGHT", "navigateRight", |
| 251 |
"KP_RIGHT", "navigateRight", |
| 252 |
"LEFT", "navigateLeft", |
| 253 |
"KP_LEFT", "navigateLeft", |
| 254 |
"UP", "navigateUp", |
| 255 |
"KP_UP", "navigateUp", |
| 256 |
"DOWN", "navigateDown", |
| 257 |
"KP_DOWN", "navigateDown", |
| 258 |
"ctrl DOWN", "requestFocusForVisibleComponent", |
| 259 |
"ctrl KP_DOWN", "requestFocusForVisibleComponent", |
| 260 |
}), |
| 261 |
"JideTabbedPane.ancestorInputMap", |
| 262 |
new UIDefaults.LazyInputMap(new Object[]{ |
| 263 |
"ctrl PAGE_DOWN", "navigatePageDown", |
| 264 |
"ctrl PAGE_UP", "navigatePageUp", |
| 265 |
"ctrl UP", "requestFocus", |
| 266 |
"ctrl KP_UP", "requestFocus", |
| 267 |
}), |
| 268 |
|
| 269 |
// this two colors are used by JideTabbedPane so moved it here |
| 270 |
"DockableFrame.activeTitleBackground2", activeTitleBarGradientColor, //EclipseUtils.getLighterColor((Color)windowTitleBackground), |
| 271 |
"DockableFrame.activeTitleBackground", activeTitleBackgroundColor, |
| 272 |
|
| 273 |
"Gripper.size", 8, |
| 274 |
"Gripper.painter", gripperPainter, |
| 275 |
|
| 276 |
"Resizable.resizeBorder", new BorderUIResource(shadowBorder), |
| 277 |
|
| 278 |
"ButtonPanel.order", "ACO", |
| 279 |
"ButtonPanel.oppositeOrder", "H", |
| 280 |
"ButtonPanel.buttonGap", 6, |
| 281 |
"ButtonPanel.groupGap", 6, |
| 282 |
"ButtonPanel.minButtonWidth", 75, |
| 283 |
|
| 284 |
"JideSplitButton.font", controlFont, |
| 285 |
"JideSplitButton.margin", new InsetsUIResource(3, 3, 3, 7), |
| 286 |
"JideSplitButton.border", buttonBorder, |
| 287 |
"JideSplitButton.borderPainted", Boolean.FALSE, |
| 288 |
"JideSplitButton.textIconGap", 4, |
| 289 |
"JideSplitButton.selectionBackground", selectionBackgroundColor, |
| 290 |
"JideSplitButton.selectionForeground", defaultTextColor, |
| 291 |
"JideSplitButton.focusInputMap", new UIDefaults.LazyInputMap(new Object[]{ |
| 292 |
"SPACE", "pressed", |
| 293 |
"released SPACE", "released", |
| 294 |
"ENTER", "pressed", |
| 295 |
"released ENTER", "released", |
| 296 |
"DOWN", "downPressed", |
| 297 |
"released DOWN", "downReleased" |
| 298 |
}), |
| 299 |
|
| 300 |
"Cursor.hsplit", JideIconsFactory.getImageIcon(JideIconsFactory.Cursor.HSPLIT), |
| 301 |
"Cursor.vsplit", JideIconsFactory.getImageIcon(JideIconsFactory.Cursor.VSPLIT), |
| 302 |
|
| 303 |
"Cursor.north", JideIconsFactory.getImageIcon(JideIconsFactory.Cursor.NORTH), |
| 304 |
"Cursor.south", JideIconsFactory.getImageIcon(JideIconsFactory.Cursor.SOUTH), |
| 305 |
"Cursor.east", JideIconsFactory.getImageIcon(JideIconsFactory.Cursor.EAST), |
| 306 |
"Cursor.west", JideIconsFactory.getImageIcon(JideIconsFactory.Cursor.WEST), |
| 307 |
"Cursor.tab", JideIconsFactory.getImageIcon(JideIconsFactory.Cursor.TAB), |
| 308 |
"Cursor.float", JideIconsFactory.getImageIcon(JideIconsFactory.Cursor.FLOAT), |
| 309 |
"Cursor.vertical", JideIconsFactory.getImageIcon(JideIconsFactory.Cursor.VERTICAL), |
| 310 |
"Cursor.horizontal", JideIconsFactory.getImageIcon(JideIconsFactory.Cursor.HORIZONTAL), |
| 311 |
"Cursor.delete", JideIconsFactory.getImageIcon(JideIconsFactory.Cursor.DELETE), |
| 312 |
"Cursor.drag", JideIconsFactory.getImageIcon(JideIconsFactory.Cursor.DROP), |
| 313 |
"Cursor.dragStop", JideIconsFactory.getImageIcon(JideIconsFactory.Cursor.NODROP), |
| 314 |
"Cursor.dragText", JideIconsFactory.getImageIcon(JideIconsFactory.Cursor.DROP_TEXT), |
| 315 |
"Cursor.dragTextStop", JideIconsFactory.getImageIcon(JideIconsFactory.Cursor.NODROP_TEXT), |
| 316 |
"Cursor.percentage", JideIconsFactory.getImageIcon(JideIconsFactory.Cursor.PERCENTAGE), |
| 317 |
"Cursor.moveEast", JideIconsFactory.getImageIcon(JideIconsFactory.Cursor.MOVE_EAST), |
| 318 |
"Cursor.moveWest", JideIconsFactory.getImageIcon(JideIconsFactory.Cursor.MOVE_WEST), |
| 319 |
|
| 320 |
"HeaderBox.background", defaultBackgroundColor, |
| 321 |
|
| 322 |
"Icon.floating", Boolean.FALSE, |
| 323 |
|
| 324 |
"JideScrollPane.border", new BorderUIResource(BorderFactory.createEmptyBorder()), |
| 325 |
"MenuBar.border", new BorderUIResource(BorderFactory.createEmptyBorder(2, 2, 2, 2)), |
| 326 |
|
| 327 |
"TextArea.font", controlFont, |
| 328 |
}; |
| 329 |
table.putDefaults(uiDefaults); |
| 330 |
|
| 331 |
int products = LookAndFeelFactory.getProductsUsed(); |
| 332 |
|
| 333 |
if ((products & PRODUCT_DOCK) != 0) { |
| 334 |
Object slidingEastFrameBorder = new ExtWindowsDesktopProperty(new String[]{"win.3d.lightColor", "win.3d.highlightColor", "win.3d.shadowColor", "win.3d.darkShadowColor"}, |
| 335 |
new Object[]{UIDefaultsLookup.get("control"), UIDefaultsLookup.get("controlLtHighlight"), UIDefaultsLookup.get("controlShadow"), UIDefaultsLookup.get("controlDkShadow")}, toolkit, new ConvertListener() { |
| 336 |
public Object convert(Object[] obj) { |
| 337 |
return new FrameBorder((Color) obj[0], (Color) obj[1], (Color) obj[2], (Color) obj[3], |
| 338 |
new Insets(0, 4, 0, 0)); |
| 339 |
} |
| 340 |
}); |
| 341 |
|
| 342 |
Object slidingWestFrameBorder = new ExtWindowsDesktopProperty(new String[]{"win.3d.lightColor", "win.3d.highlightColor", "win.3d.shadowColor", "win.3d.darkShadowColor"}, |
| 343 |
new Object[]{UIDefaultsLookup.get("control"), UIDefaultsLookup.get("controlLtHighlight"), UIDefaultsLookup.get("controlShadow"), UIDefaultsLookup.get("controlDkShadow")}, toolkit, new ConvertListener() { |
| 344 |
public Object convert(Object[] obj) { |
| 345 |
return new FrameBorder((Color) obj[0], (Color) obj[1], (Color) obj[2], (Color) obj[3], |
| 346 |
new Insets(0, 0, 0, 4)); |
| 347 |
} |
| 348 |
}); |
| 349 |
|
| 350 |
Object slidingNorthFrameBorder = new ExtWindowsDesktopProperty(new String[]{"win.3d.lightColor", "win.3d.highlightColor", "win.3d.shadowColor", "win.3d.darkShadowColor"}, |
| 351 |
new Object[]{UIDefaultsLookup.get("control"), UIDefaultsLookup.get("controlLtHighlight"), UIDefaultsLookup.get("controlShadow"), UIDefaultsLookup.get("controlDkShadow")}, toolkit, new ConvertListener() { |
| 352 |
public Object convert(Object[] obj) { |
| 353 |
return new FrameBorder((Color) obj[0], (Color) obj[1], (Color) obj[2], (Color) obj[3], |
| 354 |
new Insets(0, 0, 4, 0)); |
| 355 |
} |
| 356 |
}); |
| 357 |
|
| 358 |
Object slidingSouthFrameBorder = new ExtWindowsDesktopProperty(new String[]{"win.3d.lightColor", "win.3d.highlightColor", "win.3d.shadowColor", "win.3d.darkShadowColor"}, |
| 359 |
new Object[]{UIDefaultsLookup.get("control"), UIDefaultsLookup.get("controlLtHighlight"), UIDefaultsLookup.get("controlShadow"), UIDefaultsLookup.get("controlDkShadow")}, toolkit, new ConvertListener() { |
| 360 |
public Object convert(Object[] obj) { |
| 361 |
return new FrameBorder((Color) obj[0], (Color) obj[1], (Color) obj[2], (Color) obj[3], |
| 362 |
new Insets(4, 0, 0, 0)); |
| 363 |
} |
| 364 |
}); |
| 365 |
|
| 366 |
ImageIcon titleButtonImage = IconsFactory.getImageIcon(Eclipse3xWindowsUtils.class, "icons/title_buttons_eclipse.gif"); // 16 x 16 x 8 |
| 367 |
final int titleButtonSize = 16; |
| 368 |
|
| 369 |
uiDefaults = new Object[]{ |
| 370 |
"Workspace.background", mdiBackgroundColor, |
| 371 |
|
| 372 |
"SidePane.margin", new InsetsUIResource(1, 1, 1, 1), |
| 373 |
"SidePane.iconTextGap", 2, |
| 374 |
"SidePane.textBorderGap", 13, |
| 375 |
"SidePane.itemGap", 4, |
| 376 |
"SidePane.groupGap", 3, |
| 377 |
"SidePane.foreground", defaultDarkShadowColor, |
| 378 |
"SidePane.background", defaultBackgroundColor, |
| 379 |
"SidePane.lineColor", defaultShadowColor, |
| 380 |
"SidePane.buttonBackground", defaultBackgroundColor, |
| 381 |
"SidePane.font", controlFont, |
| 382 |
"SidePane.orientation", 1, |
| 383 |
"SidePane.showSelectedTabText", Boolean.FALSE, |
| 384 |
"SidePane.alwaysShowTabText", Boolean.FALSE, |
| 385 |
|
| 386 |
"ContentContainer.background", defaultBackgroundColor, |
| 387 |
"ContentContainer.vgap", 1, |
| 388 |
"ContentContainer.hgap", 1, |
| 389 |
"MainContainer.border", new BorderUIResource(BorderFactory.createEmptyBorder(0, 0, 0, 0)), |
| 390 |
|
| 391 |
"DockableFrame.defaultIcon", JideIconsFactory.getImageIcon(JideIconsFactory.DockableFrame.BLANK), |
| 392 |
"DockableFrame.background", defaultBackgroundColor, |
| 393 |
"DockableFrame.border", new BorderUIResource(BorderFactory.createEmptyBorder(0, 0, 0, 0)), |
| 394 |
"DockableFrame.floatingBorder", new BorderUIResource(BorderFactory.createEmptyBorder(0, 0, 0, 0)), |
| 395 |
"DockableFrame.slidingEastBorder", slidingEastFrameBorder, |
| 396 |
"DockableFrame.slidingWestBorder", slidingWestFrameBorder, |
| 397 |
"DockableFrame.slidingNorthBorder", slidingNorthFrameBorder, |
| 398 |
"DockableFrame.slidingSouthBorder", slidingSouthFrameBorder, |
| 399 |
|
| 400 |
"DockableFrame.activeTitleForeground", activeTitleTextColor, |
| 401 |
"DockableFrame.inactiveTitleBackground", inactiveTitleBackgroundColor, |
| 402 |
"DockableFrame.inactiveTitleForeground", defaultTextColor, |
| 403 |
"DockableFrame.activeTitleBorderColor", activeTitleBackgroundColor, |
| 404 |
"DockableFrame.inactiveTitleBorderColor", inactiveTitleTextColor, |
| 405 |
"DockableFrame.titleBorder", new BorderUIResource(BorderFactory.createEmptyBorder(0, 0, 0, 0)), |
| 406 |
"DockableFrame.font", controlFont, |
| 407 |
|
| 408 |
"DockableFrameTitlePane.gripperPainter", gripperPainter, |
| 409 |
"DockableFrameTitlePane.font", controlFont, |
| 410 |
"DockableFrameTitlePane.hideIcon", IconsFactory.getIcon(null, titleButtonImage, 0, 0, titleButtonSize, titleButtonSize), |
| 411 |
"DockableFrameTitlePane.unfloatIcon", IconsFactory.getIcon(null, titleButtonImage, 0, titleButtonSize, titleButtonSize, titleButtonSize), |
| 412 |
"DockableFrameTitlePane.floatIcon", IconsFactory.getIcon(null, titleButtonImage, 0, 2 * titleButtonSize, titleButtonSize, titleButtonSize), |
| 413 |
"DockableFrameTitlePane.autohideIcon", IconsFactory.getIcon(null, titleButtonImage, 0, 3 * titleButtonSize, titleButtonSize, titleButtonSize), |
| 414 |
"DockableFrameTitlePane.stopAutohideIcon", IconsFactory.getIcon(null, titleButtonImage, 0, 4 * titleButtonSize, titleButtonSize, titleButtonSize), |
| 415 |
"DockableFrameTitlePane.hideAutohideIcon", IconsFactory.getIcon(null, titleButtonImage, 0, 5 * titleButtonSize, titleButtonSize, titleButtonSize), |
| 416 |
"DockableFrameTitlePane.maximizeIcon", IconsFactory.getIcon(null, titleButtonImage, 0, 6 * titleButtonSize, titleButtonSize, titleButtonSize), |
| 417 |
"DockableFrameTitlePane.restoreIcon", IconsFactory.getIcon(null, titleButtonImage, 0, 7 * titleButtonSize, titleButtonSize, titleButtonSize), |
| 418 |
"DockableFrameTitlePane.titleBarComponent", Boolean.TRUE, |
| 419 |
|
| 420 |
"DockableFrameTitlePane.alwaysShowAllButtons", Boolean.FALSE, // true if show all three buttons no matter if the buttons is available. false if only show buttons which is available |
| 421 |
"DockableFrameTitlePane.buttonsAlignment", SwingConstants.TRAILING, // trailing or leading |
| 422 |
"DockableFrameTitlePane.titleAlignment", SwingConstants.LEADING, // trailing or leading or center |
| 423 |
"DockableFrameTitlePane.buttonGap", 3, // gap between buttons |
| 424 |
"DockableFrameTitlePane.showIcon", Boolean.TRUE, // show icon or not, the alignment is the same as titleAlignment |
| 425 |
"DockableFrameTitlePane.margin", new InsetsUIResource(0, 6, 0, 0), // gap |
| 426 |
|
| 427 |
"Contour.color", activeTitleBackgroundColor, |
| 428 |
"Contour.thickness", 2, |
| 429 |
|
| 430 |
"DockingFramework.changeCursor", Boolean.TRUE, |
| 431 |
}; |
| 432 |
table.putDefaults(uiDefaults); |
| 433 |
} |
| 434 |
|
| 435 |
if ((products & PRODUCT_COMPONENTS) != 0) { |
| 436 |
ImageIcon collapsiblePaneImage = IconsFactory.getImageIcon(Eclipse3xWindowsUtils.class, "icons/collapsible_pane_eclipse.gif"); // 11 x 11 x 2 |
| 437 |
final int collapsiblePaneSize = 11; |
| 438 |
|
| 439 |
uiDefaults = new Object[]{ |
| 440 |
"CollapsiblePanes.border", new BorderUIResource(BorderFactory.createEmptyBorder(12, 12, 12, 12)), |
| 441 |
"CollapsiblePanes.gap", 15, |
| 442 |
|
| 443 |
"CollapsiblePane.background", defaultBackgroundColor, |
| 444 |
"CollapsiblePane.contentBackground", defaultLtHighlightColor, |
| 445 |
"CollapsiblePane.foreground", defaultTextColor, |
| 446 |
"CollapsiblePane.emphasizedBackground", activeTitleBackgroundColor, |
| 447 |
"CollapsiblePane.emphasizedForeground", activeTitleTextColor, |
| 448 |
"CollapsiblePane.border", new BorderUIResource(BorderFactory.createEmptyBorder(0, 0, 0, 0)), |
| 449 |
"CollapsiblePane.font", controlFont, |
| 450 |
|
| 451 |
"CollapsiblePane.contentBorder", new BorderUIResource(BorderFactory.createEmptyBorder(8, 10, 8, 10)), |
| 452 |
|
| 453 |
"CollapsiblePane.titleBorder", new BorderUIResource(BorderFactory.createEmptyBorder(3, 3, 3, 3)), |
| 454 |
"CollapsiblePane.titleFont", boldFont, |
| 455 |
"CollapsiblePane.downIcon", IconsFactory.getIcon(null, collapsiblePaneImage, 0, 0, collapsiblePaneSize, collapsiblePaneSize), |
| 456 |
"CollapsiblePane.upIcon", IconsFactory.getIcon(null, collapsiblePaneImage, 0, collapsiblePaneSize, collapsiblePaneSize, collapsiblePaneSize), |
| 457 |
|
| 458 |
"StatusBarItem.border", sunkenBorder, |
| 459 |
|
| 460 |
"StatusBar.border", new BorderUIResource(BorderFactory.createEmptyBorder(2, 0, 0, 0)), |
| 461 |
"StatusBar.margin", new Insets(2, 0, 0, 0), |
| 462 |
"StatusBar.gap", 3, |
| 463 |
"StatusBar.background", defaultBackgroundColor, |
| 464 |
"StatusBar.font", controlFont, |
| 465 |
"MemoryStatusBarItem.fillColor", new ColorUIResource(236, 233, 176), |
| 466 |
|
| 467 |
"DocumentPane.groupBorder", new BorderUIResource(documentBorder), |
| 468 |
"DocumentPane.newHorizontalGroupIcon", JideIconsFactory.getImageIcon(JideIconsFactory.WindowMenu.NEW_HORIZONTAL_TAB), |
| 469 |
"DocumentPane.newVerticalGroupIcon", JideIconsFactory.getImageIcon(JideIconsFactory.WindowMenu.NEW_VERTICAL_TAB), |
| 470 |
"DocumentPane.boldActiveTab", Boolean.FALSE, |
| 471 |
|
| 472 |
"OutlookTabbedPane.buttonStyle", JideButton.TOOLBOX_STYLE, |
| 473 |
"FloorTabbedPane.buttonStyle", JideButton.TOOLBOX_STYLE, |
| 474 |
}; |
| 475 |
table.putDefaults(uiDefaults); |
| 476 |
} |
| 477 |
|
| 478 |
if ((products & PRODUCT_ACTION) != 0) { |
| 479 |
uiDefaults = new Object[]{ |
| 480 |
"CommandBar.font", toolbarFont, |
| 481 |
"CommandBar.background", defaultBackgroundColor, |
| 482 |
"CommandBar.foreground", defaultTextColor, |
| 483 |
"CommandBar.shadow", defaultShadowColor, |
| 484 |
"CommandBar.darkShadow", defaultDarkShadowColor, |
| 485 |
"CommandBar.light", defaultHighlightColor, |
| 486 |
"CommandBar.highlight", defaultLtHighlightColor, |
| 487 |
"CommandBar.border", new BorderUIResource(BorderFactory.createEmptyBorder(2, 1, 2, 1)), |
| 488 |
"CommandBar.borderVert", new BorderUIResource(BorderFactory.createEmptyBorder(2, 1, 2, 1)), |
| 489 |
"CommandBar.borderFloating", new BorderUIResource(BorderFactory.createCompoundBorder(BorderFactory.createLineBorder((Color) activeTitleBackgroundColor.createValue(table), 2), |
| 490 |
BorderFactory.createEmptyBorder(1, 1, 1, 1))), |
| 491 |
"CommandBar.separatorSize", 3, |
| 492 |
"CommandBar.ancestorInputMap", |
| 493 |
new UIDefaults.LazyInputMap(new Object[]{ |
| 494 |
"UP", "navigateUp", |
| 495 |
"KP_UP", "navigateUp", |
| 496 |
"DOWN", "navigateDown", |
| 497 |
"KP_DOWN", "navigateDown", |
| 498 |
"LEFT", "navigateLeft", |
| 499 |
"KP_LEFT", "navigateLeft", |
| 500 |
"RIGHT", "navigateRight", |
| 501 |
"KP_RIGHT", "navigateRight" |
| 502 |
}), |
| 503 |
"CommandBar.titleBarSize", 17, |
| 504 |
"CommandBar.titleBarButtonGap", 1, |
| 505 |
"CommandBar.titleBarBackground", activeTitleBackgroundColor, |
| 506 |
"CommandBar.titleBarForeground", activeTitleTextColor, |
| 507 |
"CommandBar.titleBarFont", boldFont, |
| 508 |
"CommandBar.minimumSize", new DimensionUIResource(20, 20), |
| 509 |
|
| 510 |
"CommandBar.separatorSize", new DimensionUIResource(5, 20), |
| 511 |
|
| 512 |
// *** Separator |
| 513 |
"CommandBarSeparator.background", new Color(219, 216, 209), |
| 514 |
"CommandBarSeparator.foreground", new Color(166, 166, 166), |
| 515 |
|
| 516 |
"Chevron.size", 11, |
| 517 |
"Chevron.alwaysVisible", Boolean.FALSE, |
| 518 |
}; |
| 519 |
table.putDefaults(uiDefaults); |
| 520 |
} |
| 521 |
|
| 522 |
if ((products & PRODUCT_GRIDS) != 0) { |
| 523 |
uiDefaults = new Object[]{ |
| 524 |
"AbstractComboBox.useJButton", Boolean.FALSE, |
| 525 |
"NestedTableHeader.cellBorder", new HeaderCellBorder(), |
| 526 |
|
| 527 |
"GroupList.ancestorInputMap", new UIDefaults.LazyInputMap(new Object[]{ |
| 528 |
"TAB", "selectNextGroup", |
| 529 |
"shift TAB", "selectPreviousGroup", |
| 530 |
}), |
| 531 |
}; |
| 532 |
table.putDefaults(uiDefaults); |
| 533 |
} |
| 534 |
|
| 535 |
if ((products & PRODUCT_DIFF) != 0) { |
| 536 |
uiDefaults = new Object[]{ |
| 537 |
"DiffMerge.changed", new ColorUIResource(196, 196, 255), |
| 538 |
"DiffMerge.deleted", new ColorUIResource(200, 200, 200), |
| 539 |
"DiffMerge.inserted", new ColorUIResource(196, 255, 196), |
| 540 |
"DiffMerge.conflicted", new ColorUIResource(255, 153, 153), |
| 541 |
}; |
| 542 |
table.putDefaults(uiDefaults); |
| 543 |
} |
| 544 |
|
| 545 |
if (!JideSwingUtilities.shouldUseSystemFont()) { |
| 546 |
Object uiDefaultsFont[] = { |
| 547 |
"TabbedPane.font", controlFont, |
| 548 |
"TitledBorder.font", controlFont, |
| 549 |
"TableHeader.font", controlFont, |
| 550 |
"Table.font", controlFont, |
| 551 |
"List.font", controlFont, |
| 552 |
"Tree.font", controlFont, |
| 553 |
"ToolTip.font", controlFont, |
| 554 |
"CheckBox.font", controlFont, |
| 555 |
"RadioButton.font", controlFont, |
| 556 |
"Label.font", controlFont, |
| 557 |
"Panel.font", controlFont, |
| 558 |
"TextField.font", controlFont, |
| 559 |
"ComboBox.font", controlFont, |
| 560 |
"Button.font", controlFont |
| 561 |
}; |
| 562 |
table.putDefaults(uiDefaultsFont); |
| 563 |
} |
| 564 |
UIDefaultsLookup.put(table, "Theme.painter", EclipsePainter.getInstance()); |
| 565 |
} |
| 566 |
|
| 567 |
/** |
| 568 |
* Initializes components defaults with menu components UIDefaults. |
| 569 |
* |
| 570 |
* @param table ui default table |
| 571 |
*/ |
| 572 |
public static void initComponentDefaultsWithMenu(UIDefaults table) { |
| 573 |
Toolkit toolkit = Toolkit.getDefaultToolkit(); |
| 574 |
|
| 575 |
initComponentDefaults(table); |
| 576 |
|
| 577 |
if (!Beans.isDesignTime()) { |
| 578 |
WindowsDesktopProperty defaultLightColor = new WindowsDesktopProperty("win.3d.lightColor", UIDefaultsLookup.get("controlHighlight"), toolkit); |
| 579 |
WindowsDesktopProperty defaultHighlightColor = new WindowsDesktopProperty("win.3d.highlightColor", UIDefaultsLookup.get("controlLtHighlight"), toolkit); |
| 580 |
WindowsDesktopProperty selectionTextColor = new WindowsDesktopProperty("win.item.highlightTextColor", UIDefaultsLookup.get("textHighlightText"), toolkit); |
| 581 |
WindowsDesktopProperty selectionBackgroundColor = new WindowsDesktopProperty("win.item.highlightColor", UIDefaultsLookup.get("controlShadow"), toolkit); |
| 582 |
|
| 583 |
WindowsDesktopProperty defaultShadowColor = new WindowsDesktopProperty("win.3d.shadowColor", UIDefaultsLookup.get("controlShadow"), toolkit); |
| 584 |
|
| 585 |
Object menuBorder = new ExtWindowsDesktopProperty(new String[]{"win.3d.lightColor", "win.3d.highlightColor", "win.3d.shadowColor", "win.3d.darkShadowColor"}, |
| 586 |
new Object[]{UIDefaultsLookup.get("control"), UIDefaultsLookup.get("controlLtHighlight"), UIDefaultsLookup.get("controlShadow"), UIDefaultsLookup.get("controlDkShadow")}, toolkit, new ConvertListener() { |
| 587 |
public Object convert(Object[] obj) { |
| 588 |
return new RaisedBorder((Color) obj[0], (Color) obj[1], (Color) obj[2], (Color) obj[3], |
| 589 |
new Insets(2, 2, 2, 2)); |
| 590 |
} |
| 591 |
}); |
| 592 |
|
| 593 |
Object menuFont = JideSwingUtilities.getMenuFont(toolkit, table); |
| 594 |
|
| 595 |
Object uiDefaults[] = { |
| 596 |
"PopupMenuSeparator.foreground", defaultHighlightColor, |
| 597 |
"PopupMenuSeparator.background", defaultShadowColor, |
| 598 |
|
| 599 |
"CheckBoxMenuItem.checkIcon", new MenuCheckIcon(JideIconsFactory.getImageIcon(JideIconsFactory.MENU_CHECKBOX_ECLIPSE)), |
| 600 |
"CheckBoxMenuItem.selectionBackground", selectionBackgroundColor, |
| 601 |
"CheckBoxMenuItem.selectionForeground", selectionTextColor, |
| 602 |
"CheckBoxMenuItem.acceleratorSelectionForeground", selectionTextColor, |
| 603 |
"CheckBoxMenuItem.mouseHoverBackground", defaultHighlightColor, |
| 604 |
"CheckBoxMenuItem.mouseHoverBorder", new BorderUIResource(BorderFactory.createLineBorder(new Color(10, 36, 106))), |
| 605 |
"CheckBoxMenuItem.margin", new InsetsUIResource(2, 2, 2, 2), |
| 606 |
"CheckBoxMenuItem.font", menuFont, |
| 607 |
"CheckBoxMenuItem.acceleratorFont", menuFont, |
| 608 |
|
| 609 |
"RadioButtonMenuItem.checkIcon", new MenuCheckIcon(JideIconsFactory.getImageIcon(JideIconsFactory.MENU_RADIOBUTTON_ECLIPSE)), |
| 610 |
"RadioButtonMenuItem.selectionBackground", selectionBackgroundColor, |
| 611 |
"RadioButtonMenuItem.selectionForeground", selectionTextColor, |
| 612 |
"RadioButtonMenuItem.acceleratorSelectionForeground", selectionTextColor, |
| 613 |
"RadioButtonMenuItem.mouseHoverBackground", defaultHighlightColor, |
| 614 |
"RadioButtonMenuItem.mouseHoverBorder", new BorderUIResource(BorderFactory.createLineBorder(new Color(10, 36, 106))), |
| 615 |
"RadioButtonMenuItem.margin", new InsetsUIResource(2, 2, 2, 2), |
| 616 |
"RadioButtonMenuItem.font", menuFont, |
| 617 |
"RadioButtonMenuItem.acceleratorFont", menuFont, |
| 618 |
|
| 619 |
"MenuBar.border", new BorderUIResource(BorderFactory.createEmptyBorder(2, 2, 4, 2)), |
| 620 |
|
| 621 |
"Menu.selectionBackground", selectionBackgroundColor, |
| 622 |
"Menu.selectionForeground", selectionTextColor, |
| 623 |
"Menu.mouseHoverBackground", selectionBackgroundColor, |
| 624 |
"Menu.mouseHoverBorder", new BorderUIResource(BorderFactory.createEmptyBorder()), |
| 625 |
"Menu.mouseSelectedBorder", new BorderUIResource(BorderFactory.createEmptyBorder()), |
| 626 |
"Menu.margin", new InsetsUIResource(4, 6, 2, 6), |
| 627 |
"Menu.textIconGap", 4, |
| 628 |
"Menu.checkIcon", new MenuCheckIcon(JideIconsFactory.getImageIcon(JideIconsFactory.MENU_CHECKBOX_VSNET)), |
| 629 |
"Menu.font", menuFont, |
| 630 |
"Menu.acceleratorFont", menuFont, |
| 631 |
|
| 632 |
"PopupMenu.border", menuBorder, |
| 633 |
|
| 634 |
"MenuItem.checkIcon", new MenuCheckIcon(JideIconsFactory.getImageIcon(JideIconsFactory.MENU_CHECKBOX_VSNET)), |
| 635 |
"MenuItem.selectionBackground", selectionBackgroundColor, |
| 636 |
"MenuItem.selectionForeground", selectionTextColor, |
| 637 |
"MenuItem.acceleratorSelectionForeground", selectionTextColor, |
| 638 |
// "MenuItem.background", menuBackground, |
| 639 |
"MenuItem.selectionBorderColor", selectionBackgroundColor, |
| 640 |
"MenuItem.shadowWidth", 24, |
| 641 |
"MenuItem.shadowColor", defaultLightColor, // TODO: not exactly. The actual one a little bit brighter than it |
| 642 |
"MenuItem.textIconGap", 4, |
| 643 |
"MenuItem.accelEndGap", 18, |
| 644 |
"MenuItem.margin", new InsetsUIResource(2, 2, 2, 2), |
| 645 |
"MenuItem.font", menuFont, |
| 646 |
"MenuItem.acceleratorFont", menuFont, |
| 647 |
}; |
| 648 |
table.putDefaults(uiDefaults); |
| 649 |
} |
| 650 |
} |
| 651 |
} |