From 6f221c681cddccbf44e9d6cf473471a71fcf751f Mon Sep 17 00:00:00 2001 From: teridax Date: Wed, 19 Jul 2023 19:33:22 +0200 Subject: [PATCH] increased dialog width --- src/me/teridax/jcash/gui/deposit/DepositView.java | 3 +++ src/me/teridax/jcash/gui/takeoff/TakeoffView.java | 3 +++ src/me/teridax/jcash/gui/transfer/TransferView.java | 2 ++ 3 files changed, 8 insertions(+) diff --git a/src/me/teridax/jcash/gui/deposit/DepositView.java b/src/me/teridax/jcash/gui/deposit/DepositView.java index 6683e4b..82159d2 100644 --- a/src/me/teridax/jcash/gui/deposit/DepositView.java +++ b/src/me/teridax/jcash/gui/deposit/DepositView.java @@ -2,6 +2,7 @@ package me.teridax.jcash.gui.deposit; import me.teridax.jcash.Logging; import me.teridax.jcash.decode.StringDecoder; +import me.teridax.jcash.gui.IconProvider; import javax.swing.*; import java.awt.*; @@ -23,9 +24,11 @@ public class DepositView { } public void showDialog() { + dialog.setIconImage(IconProvider.getWindowIcon()); dialog.setModalityType(Dialog.ModalityType.APPLICATION_MODAL); dialog.setTitle(translate("Deposit money")); dialog.pack(); + dialog.setSize(dialog.getWidth() * 2, dialog.getHeight()); dialog.setResizable(false); dialog.setLocationRelativeTo(null); dialog.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE); diff --git a/src/me/teridax/jcash/gui/takeoff/TakeoffView.java b/src/me/teridax/jcash/gui/takeoff/TakeoffView.java index 62f101b..92db0d9 100644 --- a/src/me/teridax/jcash/gui/takeoff/TakeoffView.java +++ b/src/me/teridax/jcash/gui/takeoff/TakeoffView.java @@ -1,6 +1,7 @@ package me.teridax.jcash.gui.takeoff; import me.teridax.jcash.decode.StringDecoder; +import me.teridax.jcash.gui.IconProvider; import javax.swing.*; import java.awt.*; @@ -24,9 +25,11 @@ public class TakeoffView { } public void showDialog() { + dialog.setIconImage(IconProvider.getWindowIcon()); dialog.setModalityType(Dialog.ModalityType.APPLICATION_MODAL); dialog.setTitle(translate("Takeoff money")); dialog.pack(); + dialog.setSize(dialog.getWidth() * 2, dialog.getHeight()); dialog.setResizable(false); dialog.setLocationRelativeTo(null); dialog.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE); diff --git a/src/me/teridax/jcash/gui/transfer/TransferView.java b/src/me/teridax/jcash/gui/transfer/TransferView.java index 72b0d7b..f2d5be1 100644 --- a/src/me/teridax/jcash/gui/transfer/TransferView.java +++ b/src/me/teridax/jcash/gui/transfer/TransferView.java @@ -2,6 +2,7 @@ package me.teridax.jcash.gui.transfer; import me.teridax.jcash.Logging; import me.teridax.jcash.decode.StringDecoder; +import me.teridax.jcash.gui.IconProvider; import javax.swing.*; import java.awt.*; @@ -25,6 +26,7 @@ public class TransferView { } public void showDialog() { + dialog.setIconImage(IconProvider.getWindowIcon()); dialog.setModalityType(Dialog.ModalityType.APPLICATION_MODAL); dialog.setTitle(translate("Transfer money")); dialog.pack();