File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
src/de/muenchen/allg/itd51/wollmux/event Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change 92
92
import javax .swing .JLabel ;
93
93
import javax .swing .JOptionPane ;
94
94
import javax .swing .JPanel ;
95
+ import javax .swing .SwingUtilities ;
95
96
import javax .swing .filechooser .FileFilter ;
96
97
97
98
import com .sun .star .awt .XWindow ;
@@ -4395,8 +4396,16 @@ private JFileChooser createODTFileChooser(File file)
4395
4396
@ Override
4396
4397
protected JDialog createDialog (Component parent ) throws HeadlessException
4397
4398
{
4398
- JDialog dialog = super .createDialog (parent );
4399
- dialog .setAlwaysOnTop (true );
4399
+ final JDialog dialog = super .createDialog (parent );
4400
+ SwingUtilities .invokeLater (new Runnable ()
4401
+ {
4402
+ @ Override
4403
+ public void run ()
4404
+ {
4405
+ dialog .toFront ();
4406
+ dialog .setAlwaysOnTop (true );
4407
+ }
4408
+ });
4400
4409
return dialog ;
4401
4410
}
4402
4411
};
You can’t perform that action at this time.
0 commit comments