527 * an applet with threads would use the {@code init} method to create the
528 * threads and the {@code destroy} method to kill them.
529 * <p>
530 * The implementation of this method provided by the {@code Applet} class
531 * does nothing.
532 *
533 * @see java.applet.Applet#init()
534 * @see java.applet.Applet#start()
535 * @see java.applet.Applet#stop()
536 */
537 public void destroy() {
538 }
539
540 //
541 // Accessibility support
542 //
543
544 /**
545 * The accessible context associated with this {@code Applet}.
546 */
547 AccessibleContext accessibleContext = null;
548
549 /**
550 * Gets the {@code AccessibleContext} associated with this {@code Applet}.
551 * For applets, the {@code AccessibleContext} takes the form of an
552 * {@code AccessibleApplet}. A new {@code AccessibleApplet} instance is
553 * created if necessary.
554 *
555 * @return an {@code AccessibleApplet} that serves as the
556 * {@code AccessibleContext} of this {@code Applet}
557 * @since 1.3
558 */
559 public AccessibleContext getAccessibleContext() {
560 if (accessibleContext == null) {
561 accessibleContext = new AccessibleApplet();
562 }
563 return accessibleContext;
564 }
565
566 /**
|
527 * an applet with threads would use the {@code init} method to create the
528 * threads and the {@code destroy} method to kill them.
529 * <p>
530 * The implementation of this method provided by the {@code Applet} class
531 * does nothing.
532 *
533 * @see java.applet.Applet#init()
534 * @see java.applet.Applet#start()
535 * @see java.applet.Applet#stop()
536 */
537 public void destroy() {
538 }
539
540 //
541 // Accessibility support
542 //
543
544 /**
545 * The accessible context associated with this {@code Applet}.
546 */
547 @SuppressWarnings("serial") // Not statically typed as Serializable
548 AccessibleContext accessibleContext = null;
549
550 /**
551 * Gets the {@code AccessibleContext} associated with this {@code Applet}.
552 * For applets, the {@code AccessibleContext} takes the form of an
553 * {@code AccessibleApplet}. A new {@code AccessibleApplet} instance is
554 * created if necessary.
555 *
556 * @return an {@code AccessibleApplet} that serves as the
557 * {@code AccessibleContext} of this {@code Applet}
558 * @since 1.3
559 */
560 public AccessibleContext getAccessibleContext() {
561 if (accessibleContext == null) {
562 accessibleContext = new AccessibleApplet();
563 }
564 return accessibleContext;
565 }
566
567 /**
|