File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
EnrichmentMapPlugin/src/main/java/org/baderlab/csplugins/enrichmentmap/view/util Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 7
7
import java .awt .CardLayout ;
8
8
import java .awt .Dimension ;
9
9
import java .awt .event .ActionEvent ;
10
+ import java .awt .event .ComponentAdapter ;
11
+ import java .awt .event .ComponentEvent ;
10
12
import java .util .List ;
11
13
12
14
import javax .swing .AbstractAction ;
@@ -59,8 +61,14 @@ public void open() {
59
61
dialog .setDefaultCloseOperation (JFrame .DISPOSE_ON_CLOSE );
60
62
dialog .pack ();
61
63
dialog .setLocationRelativeTo (dialog .getParent ());
64
+ dialog .setModal (true );
65
+ dialog .addComponentListener (new ComponentAdapter () {
66
+ @ Override
67
+ public void componentShown (ComponentEvent e ) {
68
+ currentPage .opened ();
69
+ }
70
+ });
62
71
dialog .setVisible (true );
63
- currentPage .opened ();
64
72
}
65
73
66
74
public void dispose () {
You can’t perform that action at this time.
0 commit comments