From bf70173a2b1e41cf729387c982debdf9b61c023c Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Thu, 16 Nov 2017 16:06:56 +0300 Subject: [PATCH] Cleanup --- src/{ui => UI}/UI.java | 3 +-- src/warehouseclient/WarehouseClient.java | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) rename src/{ui => UI}/UI.java (99%) diff --git a/src/ui/UI.java b/src/UI/UI.java similarity index 99% rename from src/ui/UI.java rename to src/UI/UI.java index c428438..ec65e34 100644 --- a/src/ui/UI.java +++ b/src/UI/UI.java @@ -14,7 +14,7 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ -package ui; +package UI; import Main.Client; import Main.ClientException; @@ -85,7 +85,6 @@ public class UI { frame.getContentPane().add(this.warehouseScrollPane, BorderLayout.PAGE_START); frame.getContentPane().add(this.cartScrollPane, BorderLayout.CENTER); frame.getContentPane().add(panel, BorderLayout.PAGE_END); - frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.pack(); frame.setVisible(true); } diff --git a/src/warehouseclient/WarehouseClient.java b/src/warehouseclient/WarehouseClient.java index b1827e0..db6618d 100644 --- a/src/warehouseclient/WarehouseClient.java +++ b/src/warehouseclient/WarehouseClient.java @@ -23,7 +23,7 @@ import java.util.logging.Logger; import javax.swing.JFrame; import javax.swing.JOptionPane; import static javax.swing.JOptionPane.ERROR_MESSAGE; -import ui.UI; +import UI.UI; /** * * @author Daniil Gentili