JFCUnit enables you to write test cases for Java Swing-based applications. It provides support for obtaining handles on windows opened by your code, locating components within a component hierarchy, raising events on components (e.g., clicking a button), and handling testing of components in a thread-safe manner.