--- old/src/share/classes/java/awt/Button.java 2014-06-03 16:28:39.000000000 +0400 +++ new/src/share/classes/java/awt/Button.java 2014-06-03 16:28:39.000000000 +0400 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1995, 2013, Oracle and/or its affiliates. All rights reserved. + * 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 @@ -238,6 +238,7 @@ * Returns the command name of the action event fired by this button. * If the command name is null (default) then this method * returns the label of the button. + * @return the action command name (or label) for this button */ public String getActionCommand() { return (actionCommand == null? label : actionCommand);