src/share/classes/java/awt/MenuComponent.java
Print this page
rev 10048 : 8044740: Convert all JDK versions used in @since tag to 1.n[.n] in jdk repo
Reviewed-by:
*** 43,53 ****
* <p>
* Menu components receive and process AWT events, just as components do,
* through the method <code>processEvent</code>.
*
* @author Arthur van Hoff
! * @since JDK1.0
*/
public abstract class MenuComponent implements java.io.Serializable {
static {
/* ensure that the necessary native libraries are loaded */
--- 43,53 ----
* <p>
* Menu components receive and process AWT events, just as components do,
* through the method <code>processEvent</code>.
*
* @author Arthur van Hoff
! * @since 1.0
*/
public abstract class MenuComponent implements java.io.Serializable {
static {
/* ensure that the necessary native libraries are loaded */
*** 173,183 ****
/**
* Gets the name of the menu component.
* @return the name of the menu component
* @see java.awt.MenuComponent#setName(java.lang.String)
! * @since JDK1.1
*/
public String getName() {
if (name == null && !nameExplicitlySet) {
synchronized(this) {
if (name == null && !nameExplicitlySet)
--- 173,183 ----
/**
* Gets the name of the menu component.
* @return the name of the menu component
* @see java.awt.MenuComponent#setName(java.lang.String)
! * @since 1.1
*/
public String getName() {
if (name == null && !nameExplicitlySet) {
synchronized(this) {
if (name == null && !nameExplicitlySet)
*** 189,199 ****
/**
* Sets the name of the component to the specified string.
* @param name the name of the menu component
* @see java.awt.MenuComponent#getName
! * @since JDK1.1
*/
public void setName(String name) {
synchronized(this) {
this.name = name;
nameExplicitlySet = true;
--- 189,199 ----
/**
* Sets the name of the component to the specified string.
* @param name the name of the menu component
* @see java.awt.MenuComponent#getName
! * @since 1.1
*/
public void setName(String name) {
synchronized(this) {
this.name = name;
nameExplicitlySet = true;
*** 371,381 ****
* <p>Note that if the event parameter is <code>null</code>
* the behavior is unspecified and may result in an
* exception.
*
* @param e the event
! * @since JDK1.1
*/
protected void processEvent(AWTEvent e) {
}
/**
--- 371,381 ----
* <p>Note that if the event parameter is <code>null</code>
* the behavior is unspecified and may result in an
* exception.
*
* @param e the event
! * @since 1.1
*/
protected void processEvent(AWTEvent e) {
}
/**