Skip to content

Commit 5aa9cc0

Browse files
sikelerdEymux
authored and
Eymux
committed
trac#24090 Speichern-Dialog in Vordergrund bringen
1 parent 41c823e commit 5aa9cc0

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

src/de/muenchen/allg/itd51/wollmux/event/WollMuxEventHandler.java

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@
9292
import javax.swing.JLabel;
9393
import javax.swing.JOptionPane;
9494
import javax.swing.JPanel;
95+
import javax.swing.SwingUtilities;
9596
import javax.swing.filechooser.FileFilter;
9697

9798
import com.sun.star.awt.XWindow;
@@ -4395,8 +4396,16 @@ private JFileChooser createODTFileChooser(File file)
43954396
@Override
43964397
protected JDialog createDialog(Component parent) throws HeadlessException
43974398
{
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+
});
44004409
return dialog;
44014410
}
44024411
};

0 commit comments

Comments
 (0)