196 * from <code>getMostRecentFocusOwner</code>. |
196 * from <code>getMostRecentFocusOwner</code>. |
197 */ |
197 */ |
198 private Component lastFocusOwner; |
198 private Component lastFocusOwner; |
199 |
199 |
200 /** Bound property name. */ |
200 /** Bound property name. */ |
201 public final static String CONTENT_PANE_PROPERTY = "contentPane"; |
201 public static final String CONTENT_PANE_PROPERTY = "contentPane"; |
202 /** Bound property name. */ |
202 /** Bound property name. */ |
203 public final static String MENU_BAR_PROPERTY = "JMenuBar"; |
203 public static final String MENU_BAR_PROPERTY = "JMenuBar"; |
204 /** Bound property name. */ |
204 /** Bound property name. */ |
205 public final static String TITLE_PROPERTY = "title"; |
205 public static final String TITLE_PROPERTY = "title"; |
206 /** Bound property name. */ |
206 /** Bound property name. */ |
207 public final static String LAYERED_PANE_PROPERTY = "layeredPane"; |
207 public static final String LAYERED_PANE_PROPERTY = "layeredPane"; |
208 /** Bound property name. */ |
208 /** Bound property name. */ |
209 public final static String ROOT_PANE_PROPERTY = "rootPane"; |
209 public static final String ROOT_PANE_PROPERTY = "rootPane"; |
210 /** Bound property name. */ |
210 /** Bound property name. */ |
211 public final static String GLASS_PANE_PROPERTY = "glassPane"; |
211 public static final String GLASS_PANE_PROPERTY = "glassPane"; |
212 /** Bound property name. */ |
212 /** Bound property name. */ |
213 public final static String FRAME_ICON_PROPERTY = "frameIcon"; |
213 public static final String FRAME_ICON_PROPERTY = "frameIcon"; |
214 |
214 |
215 /** |
215 /** |
216 * Constrained property name indicated that this frame has |
216 * Constrained property name indicated that this frame has |
217 * selected status. |
217 * selected status. |
218 */ |
218 */ |
219 public final static String IS_SELECTED_PROPERTY = "selected"; |
219 public static final String IS_SELECTED_PROPERTY = "selected"; |
220 /** Constrained property name indicating that the internal frame is closed. */ |
220 /** Constrained property name indicating that the internal frame is closed. */ |
221 public final static String IS_CLOSED_PROPERTY = "closed"; |
221 public static final String IS_CLOSED_PROPERTY = "closed"; |
222 /** Constrained property name indicating that the internal frame is maximized. */ |
222 /** Constrained property name indicating that the internal frame is maximized. */ |
223 public final static String IS_MAXIMUM_PROPERTY = "maximum"; |
223 public static final String IS_MAXIMUM_PROPERTY = "maximum"; |
224 /** Constrained property name indicating that the internal frame is iconified. */ |
224 /** Constrained property name indicating that the internal frame is iconified. */ |
225 public final static String IS_ICON_PROPERTY = "icon"; |
225 public static final String IS_ICON_PROPERTY = "icon"; |
226 |
226 |
227 private static final Object PROPERTY_CHANGE_LISTENER_KEY = |
227 private static final Object PROPERTY_CHANGE_LISTENER_KEY = |
228 new StringBuilder("InternalFramePropertyChangeListener"); |
228 new StringBuilder("InternalFramePropertyChangeListener"); |
229 |
229 |
230 private static void addPropertyChangeListenerIfNecessary() { |
230 private static void addPropertyChangeListenerIfNecessary() { |
2157 * Please see {@link java.beans.XMLEncoder}. |
2157 * Please see {@link java.beans.XMLEncoder}. |
2158 * |
2158 * |
2159 * @author David Kloba |
2159 * @author David Kloba |
2160 */ |
2160 */ |
2161 @SuppressWarnings("serial") // Same-version serialization only |
2161 @SuppressWarnings("serial") // Same-version serialization only |
2162 static public class JDesktopIcon extends JComponent implements Accessible |
2162 public static class JDesktopIcon extends JComponent implements Accessible |
2163 { |
2163 { |
2164 JInternalFrame internalFrame; |
2164 JInternalFrame internalFrame; |
2165 |
2165 |
2166 /** |
2166 /** |
2167 * Creates an icon for an internal frame. |
2167 * Creates an icon for an internal frame. |