Depending on the type of Java GUI you wish to validate, there are different techniques for doing so.
If a data type (i.e. class declaration) is selected for the validation process in the Package Explorer, the type must meet one of the following conditions in order to be the target of an Internal Validation:
org.eclipse.swt.widgets.Composite
if the GUI to
be validated is an SWT GUI or java.awt.Panel
or javax.swing.JFrame
if the GUI being validated is a Java Swing GUI
If the item selected for validation is a member, it must be a public constructor or method and must match one of the signatures noted above. Moreover, if a method is selected, the class of which the method is a member must meet one of the conditions noted above.
Note: Only class declarations, constructors, and methods can be selected to trigger validation processes.
If your application has a main
method which constructs the GUI, you should use the
Inter-JVM (External) Validation method instead.