diff options
| author | 2016-07-04 18:14:22 +1000 | |
|---|---|---|
| committer | 2016-07-04 18:14:22 +1000 | |
| commit | 59e189bef2b5e6d129fb7c2c988ed0b2130e36ac (patch) | |
| tree | 2b638e60905251de85a4917152d6fc39a4112194 /src/main/java/cuchaz/enigma/gui/dialog | |
| parent | Fixed Obf Class list order (diff) | |
| download | enigma-fork-59e189bef2b5e6d129fb7c2c988ed0b2130e36ac.tar.gz enigma-fork-59e189bef2b5e6d129fb7c2c988ed0b2130e36ac.tar.xz enigma-fork-59e189bef2b5e6d129fb7c2c988ed0b2130e36ac.zip | |
Reformat
Diffstat (limited to 'src/main/java/cuchaz/enigma/gui/dialog')
3 files changed, 7 insertions, 7 deletions
diff --git a/src/main/java/cuchaz/enigma/gui/dialog/AboutDialog.java b/src/main/java/cuchaz/enigma/gui/dialog/AboutDialog.java index da4f5fb..f690b15 100644 --- a/src/main/java/cuchaz/enigma/gui/dialog/AboutDialog.java +++ b/src/main/java/cuchaz/enigma/gui/dialog/AboutDialog.java | |||
| @@ -19,7 +19,7 @@ import java.io.IOException; | |||
| 19 | import javax.swing.*; | 19 | import javax.swing.*; |
| 20 | 20 | ||
| 21 | import cuchaz.enigma.Constants; | 21 | import cuchaz.enigma.Constants; |
| 22 | import cuchaz.enigma.Util; | 22 | import cuchaz.enigma.utils.Utils; |
| 23 | 23 | ||
| 24 | public class AboutDialog { | 24 | public class AboutDialog { |
| 25 | 25 | ||
| @@ -31,7 +31,7 @@ public class AboutDialog { | |||
| 31 | 31 | ||
| 32 | // load the content | 32 | // load the content |
| 33 | try { | 33 | try { |
| 34 | String html = Util.readResourceToString("/about.html"); | 34 | String html = Utils.readResourceToString("/about.html"); |
| 35 | html = String.format(html, Constants.NAME, Constants.VERSION); | 35 | html = String.format(html, Constants.NAME, Constants.VERSION); |
| 36 | JLabel label = new JLabel(html); | 36 | JLabel label = new JLabel(html); |
| 37 | label.setHorizontalAlignment(JLabel.CENTER); | 37 | label.setHorizontalAlignment(JLabel.CENTER); |
| @@ -44,7 +44,7 @@ public class AboutDialog { | |||
| 44 | String html = "<html><a href=\"%s\">%s</a></html>"; | 44 | String html = "<html><a href=\"%s\">%s</a></html>"; |
| 45 | html = String.format(html, Constants.URL, Constants.URL); | 45 | html = String.format(html, Constants.URL, Constants.URL); |
| 46 | JButton link = new JButton(html); | 46 | JButton link = new JButton(html); |
| 47 | link.addActionListener(event -> Util.openUrl(Constants.URL)); | 47 | link.addActionListener(event -> Utils.openUrl(Constants.URL)); |
| 48 | link.setBorderPainted(false); | 48 | link.setBorderPainted(false); |
| 49 | link.setOpaque(false); | 49 | link.setOpaque(false); |
| 50 | link.setBackground(Color.WHITE); | 50 | link.setBackground(Color.WHITE); |
diff --git a/src/main/java/cuchaz/enigma/gui/dialog/CrashDialog.java b/src/main/java/cuchaz/enigma/gui/dialog/CrashDialog.java index 71aab01..8d3df47 100644 --- a/src/main/java/cuchaz/enigma/gui/dialog/CrashDialog.java +++ b/src/main/java/cuchaz/enigma/gui/dialog/CrashDialog.java | |||
| @@ -19,7 +19,7 @@ import java.io.StringWriter; | |||
| 19 | import javax.swing.*; | 19 | import javax.swing.*; |
| 20 | 20 | ||
| 21 | import cuchaz.enigma.Constants; | 21 | import cuchaz.enigma.Constants; |
| 22 | import cuchaz.enigma.gui.GuiTricks; | 22 | import cuchaz.enigma.utils.Utils; |
| 23 | 23 | ||
| 24 | public class CrashDialog { | 24 | public class CrashDialog { |
| 25 | 25 | ||
| @@ -48,7 +48,7 @@ public class CrashDialog { | |||
| 48 | FlowLayout buttonsLayout = new FlowLayout(); | 48 | FlowLayout buttonsLayout = new FlowLayout(); |
| 49 | buttonsLayout.setAlignment(FlowLayout.RIGHT); | 49 | buttonsLayout.setAlignment(FlowLayout.RIGHT); |
| 50 | buttonsPanel.setLayout(buttonsLayout); | 50 | buttonsPanel.setLayout(buttonsLayout); |
| 51 | buttonsPanel.add(GuiTricks.unboldLabel(new JLabel("If you choose exit, you will lose any unsaved work."))); | 51 | buttonsPanel.add(Utils.unboldLabel(new JLabel("If you choose exit, you will lose any unsaved work."))); |
| 52 | JButton ignoreButton = new JButton("Ignore"); | 52 | JButton ignoreButton = new JButton("Ignore"); |
| 53 | ignoreButton.addActionListener(event -> { | 53 | ignoreButton.addActionListener(event -> { |
| 54 | // close (hide) the dialog | 54 | // close (hide) the dialog |
diff --git a/src/main/java/cuchaz/enigma/gui/dialog/ProgressDialog.java b/src/main/java/cuchaz/enigma/gui/dialog/ProgressDialog.java index dc4d91e..c752c86 100644 --- a/src/main/java/cuchaz/enigma/gui/dialog/ProgressDialog.java +++ b/src/main/java/cuchaz/enigma/gui/dialog/ProgressDialog.java | |||
| @@ -19,7 +19,7 @@ import javax.swing.*; | |||
| 19 | 19 | ||
| 20 | import cuchaz.enigma.Constants; | 20 | import cuchaz.enigma.Constants; |
| 21 | import cuchaz.enigma.Deobfuscator.ProgressListener; | 21 | import cuchaz.enigma.Deobfuscator.ProgressListener; |
| 22 | import cuchaz.enigma.gui.GuiTricks; | 22 | import cuchaz.enigma.utils.Utils; |
| 23 | 23 | ||
| 24 | public class ProgressDialog implements ProgressListener, AutoCloseable { | 24 | public class ProgressDialog implements ProgressListener, AutoCloseable { |
| 25 | 25 | ||
| @@ -44,7 +44,7 @@ public class ProgressDialog implements ProgressListener, AutoCloseable { | |||
| 44 | JPanel panel = new JPanel(); | 44 | JPanel panel = new JPanel(); |
| 45 | pane.add(panel); | 45 | pane.add(panel); |
| 46 | panel.setLayout(new BorderLayout()); | 46 | panel.setLayout(new BorderLayout()); |
| 47 | this.labelText = GuiTricks.unboldLabel(new JLabel()); | 47 | this.labelText = Utils.unboldLabel(new JLabel()); |
| 48 | this.progress = new JProgressBar(); | 48 | this.progress = new JProgressBar(); |
| 49 | this.labelText.setBorder(BorderFactory.createEmptyBorder(0, 0, 10, 0)); | 49 | this.labelText.setBorder(BorderFactory.createEmptyBorder(0, 0, 10, 0)); |
| 50 | panel.add(this.labelText, BorderLayout.NORTH); | 50 | panel.add(this.labelText, BorderLayout.NORTH); |