< prev index next >

## src/java.desktop/share/classes/javax/swing/plaf/basic/BasicLookAndFeel.java

Print this page

    1076
    1077             "Menu.font", dialogPlain12,
    1078             "Menu.acceleratorFont", dialogPlain12,
    1079             "Menu.background", menu,
    1080             "Menu.foreground", menuText,
    1081             "Menu.selectionForeground", textHighlightText,
    1082             "Menu.selectionBackground", textHighlight,
    1083             "Menu.disabledForeground", null,
    1084             "Menu.acceleratorForeground", menuText,
    1085             "Menu.acceleratorSelectionForeground", textHighlightText,
    1086             "Menu.border", marginBorder,
    1087             "Menu.borderPainted", Boolean.FALSE,
    1088             "Menu.margin", twoInsets,
    1089             "Menu.checkIcon", menuItemCheckIcon,
    1090             "Menu.arrowIcon", menuArrowIcon,
    1091             "Menu.menuPopupOffsetX", 0,
    1092             "Menu.menuPopupOffsetY", 0,
    1093             "Menu.submenuPopupOffsetX", 0,
    1094             "Menu.submenuPopupOffsetY", 0,
    1095             "Menu.shortcutKeys", new int[]{
    1096                 SwingUtilities2.getSystemMnemonicKeyMask()

    1097             },
    1098             "Menu.crossMenuMnemonic", Boolean.TRUE,
    1099             // Menu.cancelMode affects the cancel menu action behaviour;
    1100             // currently supports:
    1101             // "hideLastSubmenu" (default)
    1102             //     hides the last open submenu,
    1103             //     and move selection one step back
    1104             // "hideMenuTree"
    1105             //     resets selection and
    1106             //     hide the entire structure of open menu and its submenus
    1107             "Menu.cancelMode", "hideLastSubmenu",
    1108
    1109              // Menu.preserveTopLevelSelection affects
    1110              // the cancel menu action behaviour
    1111              // if set to true then top level menu selection
    1112              // will be preserved when the last popup was cancelled;
    1113              // the menu itself will be unselect with the next cancel action
    1114              "Menu.preserveTopLevelSelection", Boolean.FALSE,
    1115
    1116             // PopupMenu
    1076
    1077             "Menu.font", dialogPlain12,
    1078             "Menu.acceleratorFont", dialogPlain12,
    1079             "Menu.background", menu,
    1080             "Menu.foreground", menuText,
    1081             "Menu.selectionForeground", textHighlightText,
    1082             "Menu.selectionBackground", textHighlight,
    1083             "Menu.disabledForeground", null,
    1084             "Menu.acceleratorForeground", menuText,
    1085             "Menu.acceleratorSelectionForeground", textHighlightText,
    1086             "Menu.border", marginBorder,
    1087             "Menu.borderPainted", Boolean.FALSE,
    1088             "Menu.margin", twoInsets,
    1089             "Menu.checkIcon", menuItemCheckIcon,
    1090             "Menu.arrowIcon", menuArrowIcon,
    1091             "Menu.menuPopupOffsetX", 0,
    1092             "Menu.menuPopupOffsetY", 0,
    1093             "Menu.submenuPopupOffsetX", 0,
    1094             "Menu.submenuPopupOffsetY", 0,
    1095             "Menu.shortcutKeys", new int[]{
    1096                 SwingUtilities2.getSystemMnemonicKeyMask(),
    1097                 SwingUtilities2.getSystemMnemonicKeyMask() |
    1098                         InputEvent.ALT_GRAPH_DOWN_MASK
    1099             },
    1100             "Menu.crossMenuMnemonic", Boolean.TRUE,
    1101             // Menu.cancelMode affects the cancel menu action behaviour;
    1102             // currently supports:
    1103             // "hideLastSubmenu" (default)
    1104             //     hides the last open submenu,
    1105             //     and move selection one step back
    1106             // "hideMenuTree"
    1107             //     resets selection and
    1108             //     hide the entire structure of open menu and its submenus
    1109             "Menu.cancelMode", "hideLastSubmenu",
    1110
    1111              // Menu.preserveTopLevelSelection affects
    1112              // the cancel menu action behaviour
    1113              // if set to true then top level menu selection
    1114              // will be preserved when the last popup was cancelled;
    1115              // the menu itself will be unselect with the next cancel action
    1116              "Menu.preserveTopLevelSelection", Boolean.FALSE,
    1117
    1118             // PopupMenu

< prev index next >