src/share/classes/java/awt/Frame.java
Print this page
@@ -1,7 +1,7 @@
/*
- * 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
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
@@ -1087,10 +1087,13 @@
}
return str;
}
/**
+ * Sets the cursor for this frame to the specified type.
+ *
+ * @param cursorType the cursor type
* @deprecated As of JDK version 1.1,
* replaced by <code>Component.setCursor(Cursor)</code>.
*/
@Deprecated
public void setCursor(int cursorType) {
@@ -1101,10 +1104,11 @@
}
/**
* @deprecated As of JDK version 1.1,
* replaced by <code>Component.getCursor()</code>.
+ * @return the cursor type for this frame
*/
@Deprecated
public int getCursorType() {
return (getCursor().getType());
}
@@ -1122,10 +1126,12 @@
* <p>
* <b>Note</b>: To obtain a list of all ownerless windows, including
* ownerless {@code Dialog}s (introduced in release 1.6), use {@link
* Window#getOwnerlessWindows Window.getOwnerlessWindows}.
*
+ * @return the array of all {@code Frame}s created by this application
+ *
* @see Window#getWindows()
* @see Window#getOwnerlessWindows
*
* @since 1.2
*/