Annotation Interface RunsInCurrentThread


@Target({METHOD,CONSTRUCTOR,TYPE}) @Documented public @interface RunsInCurrentThread
Understands an annotation that documents that a method is accessing GUI components in a thread other than the event dispatch thread.

If this annotation is used at a type level:

  1. class: all methods in a class are accessing GUI components in a thread other than the event dispatch thread.
  2. interface: methods in an interface that access GUI components should do it in a thread other than the event dispatch thread.

Note: Clients are responsible for calling methods marked with this annotation in the event dispatch thread.