diff options
author | Simon Rettberg | 2015-07-28 14:47:56 +0200 |
---|---|---|
committer | Simon Rettberg | 2015-07-28 14:47:56 +0200 |
commit | 182e25c352c299a982962ef214921c40481e3080 (patch) | |
tree | c85610bf346b086622872f04547108db0aa65993 /dozentenmodul/src/main/java/org/openslx/dozmod/gui/Gui.java | |
parent | Merge branch 'v1.1' of git.openslx.org:openslx-ng/tutor-module into v1.1 (diff) | |
download | tutor-module-182e25c352c299a982962ef214921c40481e3080.tar.gz tutor-module-182e25c352c299a982962ef214921c40481e3080.tar.xz tutor-module-182e25c352c299a982962ef214921c40481e3080.zip |
[client] Fix message boxes with yes/no option
Diffstat (limited to 'dozentenmodul/src/main/java/org/openslx/dozmod/gui/Gui.java')
-rw-r--r-- | dozentenmodul/src/main/java/org/openslx/dozmod/gui/Gui.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/Gui.java b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/Gui.java index 34a10ea1..675ddf64 100644 --- a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/Gui.java +++ b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/Gui.java @@ -129,7 +129,8 @@ public class Gui { } /** - * Get the {@link GraphicsDevice} which most of the given rectangle overlaps. + * Get the {@link GraphicsDevice} which most of the given rectangle + * overlaps. * * @param rect The rectangle to check * @param defaultToPrimary if no monitor matches the check, return the @@ -257,8 +258,9 @@ public class Gui { JOptionPane.showMessageDialog(null, message, messageType.title, messageType.optionPaneId); return true; } - int ret = JOptionPane.showConfirmDialog(null, message, messageType.title, messageType.optionPaneId, - messageType.buttons); + int ret = JOptionPane.showConfirmDialog(null, message, messageType.title, messageType.buttons + , + messageType.optionPaneId); return ret == JOptionPane.OK_OPTION || ret == JOptionPane.YES_OPTION; } |