src/share/classes/java/awt/MenuBar.java

Print this page
rev 10048 : 8044740: Convert all JDK versions used in @since tag to 1.n[.n] in jdk repo
Reviewed-by:

*** 63,73 **** * @see java.awt.Frame * @see java.awt.Frame#setMenuBar(java.awt.MenuBar) * @see java.awt.Menu * @see java.awt.MenuItem * @see java.awt.MenuShortcut ! * @since JDK1.0 */ public class MenuBar extends MenuComponent implements MenuContainer, Accessible { static { /* ensure that the necessary native libraries are loaded */ --- 63,73 ---- * @see java.awt.Frame * @see java.awt.Frame#setMenuBar(java.awt.MenuBar) * @see java.awt.Menu * @see java.awt.MenuItem * @see java.awt.MenuShortcut ! * @since 1.0 */ public class MenuBar extends MenuComponent implements MenuContainer, Accessible { static { /* ensure that the necessary native libraries are loaded */
*** 270,280 **** } /** * Gets the number of menus on the menu bar. * @return the number of menus on the menu bar. ! * @since JDK1.1 */ public int getMenuCount() { return countMenus(); } --- 270,280 ---- } /** * Gets the number of menus on the menu bar. * @return the number of menus on the menu bar. ! * @since 1.1 */ public int getMenuCount() { return countMenus(); }
*** 316,326 **** * Gets an enumeration of all menu shortcuts this menu bar * is managing. * @return an enumeration of menu shortcuts that this * menu bar is managing. * @see java.awt.MenuShortcut ! * @since JDK1.1 */ public synchronized Enumeration<MenuShortcut> shortcuts() { Vector<MenuShortcut> shortcuts = new Vector<>(); int nmenus = getMenuCount(); for (int i = 0 ; i < nmenus ; i++) { --- 316,326 ---- * Gets an enumeration of all menu shortcuts this menu bar * is managing. * @return an enumeration of menu shortcuts that this * menu bar is managing. * @see java.awt.MenuShortcut ! * @since 1.1 */ public synchronized Enumeration<MenuShortcut> shortcuts() { Vector<MenuShortcut> shortcuts = new Vector<>(); int nmenus = getMenuCount(); for (int i = 0 ; i < nmenus ; i++) {
*** 339,349 **** * by this menu bar is associated with the specified menu * shortcut. * @param s the specified menu shortcut. * @see java.awt.MenuItem * @see java.awt.MenuShortcut ! * @since JDK1.1 */ public MenuItem getShortcutMenuItem(MenuShortcut s) { int nmenus = getMenuCount(); for (int i = 0 ; i < nmenus ; i++) { MenuItem mi = getMenu(i).getShortcutMenuItem(s); --- 339,349 ---- * by this menu bar is associated with the specified menu * shortcut. * @param s the specified menu shortcut. * @see java.awt.MenuItem * @see java.awt.MenuShortcut ! * @since 1.1 */ public MenuItem getShortcutMenuItem(MenuShortcut s) { int nmenus = getMenuCount(); for (int i = 0 ; i < nmenus ; i++) { MenuItem mi = getMenu(i).getShortcutMenuItem(s);
*** 385,395 **** } /** * Deletes the specified menu shortcut. * @param s the menu shortcut to delete. ! * @since JDK1.1 */ public void deleteShortcut(MenuShortcut s) { int nmenus = getMenuCount(); for (int i = 0 ; i < nmenus ; i++) { getMenu(i).deleteShortcut(s); --- 385,395 ---- } /** * Deletes the specified menu shortcut. * @param s the menu shortcut to delete. ! * @since 1.1 */ public void deleteShortcut(MenuShortcut s) { int nmenus = getMenuCount(); for (int i = 0 ; i < nmenus ; i++) { getMenu(i).deleteShortcut(s);