01: package abbot.tester;
02:
03: import java.awt.*;
04:
05: public class DialogTester extends WindowTester {
06:
07: /** Return a unique tag to help identify the given component. */
08: public String deriveTag(Component comp) {
09: // If the component class is custom, don't provide a tag
10: if (isCustom(comp.getClass()))
11: return null;
12:
13: String tag = ((Dialog) comp).getTitle();
14: if (tag == null || "".equals(tag)) {
15: tag = super.deriveTag(comp);
16: }
17: return tag;
18: }
19: }
|