01: package org.uispec4j.interception;
02:
03: import org.uispec4j.Trigger;
04:
05: import javax.swing.*;
06:
07: class JComponentDisplayTrigger implements Trigger {
08: JComponent component;
09:
10: public JComponentDisplayTrigger(JComponent component) {
11: this .component = component;
12: }
13:
14: public void run() {
15: JDialog dialog = InterceptionTestCase
16: .createModalDialog("aDialog");
17: dialog.getContentPane().add(component);
18: dialog.setVisible(true);
19: }
20: }
|