equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1995, 2013, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1995, 2014, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
1087 } |
1087 } |
1088 return str; |
1088 return str; |
1089 } |
1089 } |
1090 |
1090 |
1091 /** |
1091 /** |
|
1092 * Sets the cursor for this frame to the specified type. |
|
1093 * |
|
1094 * @param cursorType the cursor type |
1092 * @deprecated As of JDK version 1.1, |
1095 * @deprecated As of JDK version 1.1, |
1093 * replaced by <code>Component.setCursor(Cursor)</code>. |
1096 * replaced by <code>Component.setCursor(Cursor)</code>. |
1094 */ |
1097 */ |
1095 @Deprecated |
1098 @Deprecated |
1096 public void setCursor(int cursorType) { |
1099 public void setCursor(int cursorType) { |
1101 } |
1104 } |
1102 |
1105 |
1103 /** |
1106 /** |
1104 * @deprecated As of JDK version 1.1, |
1107 * @deprecated As of JDK version 1.1, |
1105 * replaced by <code>Component.getCursor()</code>. |
1108 * replaced by <code>Component.getCursor()</code>. |
|
1109 * @return the cursor type for this frame |
1106 */ |
1110 */ |
1107 @Deprecated |
1111 @Deprecated |
1108 public int getCursorType() { |
1112 public int getCursorType() { |
1109 return (getCursor().getType()); |
1113 return (getCursor().getType()); |
1110 } |
1114 } |
1121 * positions, <code>LayoutManager</code>s or serialization. |
1125 * positions, <code>LayoutManager</code>s or serialization. |
1122 * <p> |
1126 * <p> |
1123 * <b>Note</b>: To obtain a list of all ownerless windows, including |
1127 * <b>Note</b>: To obtain a list of all ownerless windows, including |
1124 * ownerless {@code Dialog}s (introduced in release 1.6), use {@link |
1128 * ownerless {@code Dialog}s (introduced in release 1.6), use {@link |
1125 * Window#getOwnerlessWindows Window.getOwnerlessWindows}. |
1129 * Window#getOwnerlessWindows Window.getOwnerlessWindows}. |
|
1130 * |
|
1131 * @return the array of all {@code Frame}s created by this application |
1126 * |
1132 * |
1127 * @see Window#getWindows() |
1133 * @see Window#getWindows() |
1128 * @see Window#getOwnerlessWindows |
1134 * @see Window#getOwnerlessWindows |
1129 * |
1135 * |
1130 * @since 1.2 |
1136 * @since 1.2 |