312
313 /**
314 * The glass pane that overlays the menu bar and content pane,
315 * so it can intercept mouse movements and such.
316 */
317 protected Component glassPane;
318 /**
319 * The button that gets activated when the pane has the focus and
320 * a UI-specific action like pressing the <b>Enter</b> key occurs.
321 */
322 protected JButton defaultButton;
323 /**
324 * As of Java 2 platform v1.3 this unusable field is no longer used.
325 * To override the default button you should replace the <code>Action</code>
326 * in the <code>JRootPane</code>'s <code>ActionMap</code>. Please refer to
327 * the key bindings specification for further details.
328 *
329 * @deprecated As of Java 2 platform v1.3.
330 * @see #defaultButton
331 */
332 @Deprecated
333 protected DefaultAction defaultPressAction;
334 /**
335 * As of Java 2 platform v1.3 this unusable field is no longer used.
336 * To override the default button you should replace the <code>Action</code>
337 * in the <code>JRootPane</code>'s <code>ActionMap</code>. Please refer to
338 * the key bindings specification for further details.
339 *
340 * @deprecated As of Java 2 platform v1.3.
341 * @see #defaultButton
342 */
343 @Deprecated
344 protected DefaultAction defaultReleaseAction;
345
346 /**
347 * Whether or not true double buffering should be used. This is typically
348 * true, but may be set to false in special situations. For example,
349 * heavy weight popups (backed by a window) set this to false.
350 */
351 boolean useTrueDoubleBuffering = true;
352
353 static {
354 LOG_DISABLE_TRUE_DOUBLE_BUFFERING =
355 AccessController.doPrivileged(new GetBooleanAction(
356 "swing.logDoubleBufferingDisable"));
357 IGNORE_DISABLE_TRUE_DOUBLE_BUFFERING =
358 AccessController.doPrivileged(new GetBooleanAction(
359 "swing.ignoreDoubleBufferingDisable"));
360 }
361
362 /**
363 * Creates a <code>JRootPane</code>, setting up its
|
312
313 /**
314 * The glass pane that overlays the menu bar and content pane,
315 * so it can intercept mouse movements and such.
316 */
317 protected Component glassPane;
318 /**
319 * The button that gets activated when the pane has the focus and
320 * a UI-specific action like pressing the <b>Enter</b> key occurs.
321 */
322 protected JButton defaultButton;
323 /**
324 * As of Java 2 platform v1.3 this unusable field is no longer used.
325 * To override the default button you should replace the <code>Action</code>
326 * in the <code>JRootPane</code>'s <code>ActionMap</code>. Please refer to
327 * the key bindings specification for further details.
328 *
329 * @deprecated As of Java 2 platform v1.3.
330 * @see #defaultButton
331 */
332 @Deprecated @SuppressWarnings("unexportedinapi")
333 protected DefaultAction defaultPressAction;
334 /**
335 * As of Java 2 platform v1.3 this unusable field is no longer used.
336 * To override the default button you should replace the <code>Action</code>
337 * in the <code>JRootPane</code>'s <code>ActionMap</code>. Please refer to
338 * the key bindings specification for further details.
339 *
340 * @deprecated As of Java 2 platform v1.3.
341 * @see #defaultButton
342 */
343 @Deprecated @SuppressWarnings("unexportedinapi")
344 protected DefaultAction defaultReleaseAction;
345
346 /**
347 * Whether or not true double buffering should be used. This is typically
348 * true, but may be set to false in special situations. For example,
349 * heavy weight popups (backed by a window) set this to false.
350 */
351 boolean useTrueDoubleBuffering = true;
352
353 static {
354 LOG_DISABLE_TRUE_DOUBLE_BUFFERING =
355 AccessController.doPrivileged(new GetBooleanAction(
356 "swing.logDoubleBufferingDisable"));
357 IGNORE_DISABLE_TRUE_DOUBLE_BUFFERING =
358 AccessController.doPrivileged(new GetBooleanAction(
359 "swing.ignoreDoubleBufferingDisable"));
360 }
361
362 /**
363 * Creates a <code>JRootPane</code>, setting up its
|