Merge lp:~tapaal-contributor/tapaal/dialog-always-on-top-1918912 into lp:tapaal

Proposed by Lena Said
Status: Merged
Approved by: Jiri Srba
Approved revision: 1122
Merged at revision: 1123
Proposed branch: lp:~tapaal-contributor/tapaal/dialog-always-on-top-1918912
Merge into: lp:tapaal
Diff against target: 18 lines (+2/-1)
1 file modified
src/dk/aau/cs/gui/smartDraw/SmartDrawDialog.java (+2/-1)
To merge this branch: bzr merge lp:~tapaal-contributor/tapaal/dialog-always-on-top-1918912
Reviewer Review Type Date Requested Status
Jiri Srba Approve
Review via email: mp+400569@code.launchpad.net

Commit message

Loading dialog for smart draw is not on top of other applications anymore

To post a comment you must log in.
Revision history for this message
Jiri Srba (srba) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/dk/aau/cs/gui/smartDraw/SmartDrawDialog.java'
2--- src/dk/aau/cs/gui/smartDraw/SmartDrawDialog.java 2020-07-13 13:58:47 +0000
3+++ src/dk/aau/cs/gui/smartDraw/SmartDrawDialog.java 2021-04-02 10:57:11 +0000
4@@ -690,7 +690,6 @@
5 private void initLoadingFrame() {
6 loadingDialogFrame = new JDialog(CreateGui.getApp(), "Working...", true);
7 loadingDialogFrame.setLayout(new GridBagLayout());
8- loadingDialogFrame.setType(Window.Type.POPUP);
9 ImageIcon loadingGIF = ResourceManager.getIcon("ajax-loader.gif");
10
11 JLabel workingLabel = new JLabel("<html><div style='text-align: center;'>Currently doing layout...<br/>This may take several minutes depending on the size of the net...</div></html>", SwingConstants.CENTER);
12@@ -763,6 +762,8 @@
13 loadingDialogFrame.setVisible(false);
14 loadingDialogFrame.setLocationRelativeTo(CreateGui.getAppGui());
15 loadingDialogFrame.pack();
16+ loadingDialogFrame.setAlwaysOnTop(false);
17+ loadingDialogFrame.setAutoRequestFocus(false);
18 }
19
20

Subscribers

People subscribed via source and target branches