Skip to end of metadata
Go to start of metadata

FEST-Swing performs all access to Swing components in the EDT. FEST-Swing also exposes a convenient mechanism to access Swing components in the EDT from your test code. This mechanism involves three classes:

  1. GuiQuery, for performing actions in the EDT that return a value
  2. GuiTask, for performing actions in the EDT that do not return a value
  3. GuiActionRunner, executes a GuiQuery or GuiTask in the EDT, re-throwing any exceptions thrown when executing any GUI action in the EDT.

Examples:

The following examples demonstrate how to access GUI components in the EDT using FEST-Swing.

1. Reading the text of a JLabel:

2. Setting the text of a JLabel: