Abbot is a framework for automated testing of Java GUI components and programs. The Abbot framework provides automated event generation and validation of Java GUI components, improving upon the very rudimentary functions provided by the java.awt.Robot class (A Better 'Bot). The framework may be invoked directly from Java code or accessed without programming through the use of scripts. It is suitable for use both by developers for unit tests and QA for functional testing.

For further details go through this link
http://abbot.sourceforge.net/doc/overview.shtml