src/share/classes/java/awt/Menu.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 1995, 2013, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 1995, 2014, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 212,229 **** return tearOff; } /** * Get the number of items in this menu. ! * @return the number of items in this menu. * @since JDK1.1 */ public int getItemCount() { return countItems(); } /** * @deprecated As of JDK version 1.1, * replaced by <code>getItemCount()</code>. */ @Deprecated public int countItems() { --- 212,231 ---- return tearOff; } /** * Get the number of items in this menu. ! * @return the number of items in this menu * @since JDK1.1 */ public int getItemCount() { return countItems(); } /** + * Returns the number of items in this menu. + * @return the number of items in this menu * @deprecated As of JDK version 1.1, * replaced by <code>getItemCount()</code>. */ @Deprecated public int countItems() {