From e1fdddac54dc72807c69cf7ace7a1ba878b0a5c5 Mon Sep 17 00:00:00 2001 From: js Date: Fri, 10 Apr 2020 16:51:18 +0200 Subject: [PATCH] now display default values for each field --- src/gui/ArgumentsGen.java | 8 ++++---- src/gui/ClientInterfaceGUI.java | 3 ++- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/gui/ArgumentsGen.java b/src/gui/ArgumentsGen.java index 2f3d7f4..13ae039 100644 --- a/src/gui/ArgumentsGen.java +++ b/src/gui/ArgumentsGen.java @@ -52,10 +52,10 @@ public class ArgumentsGen extends javax.swing.JPanel { jLabel5 = new javax.swing.JLabel(); jLabel6 = new javax.swing.JLabel(); jComboBox1 = new javax.swing.JComboBox<>(); - jTextField1 = new javax.swing.JTextField(); - jTextField2 = new javax.swing.JTextField(); - jTextField3 = new javax.swing.JTextField(); - jTextField4 = new javax.swing.JTextField(); + jTextField1 = new javax.swing.JTextField("7071"); + jTextField2 = new javax.swing.JTextField("localhost"); + jTextField3 = new javax.swing.JTextField("localhost"); + jTextField4 = new javax.swing.JTextField("6969"); jButton1 = new javax.swing.JButton(); jLabel1.setText("Enter connection informations:"); diff --git a/src/gui/ClientInterfaceGUI.java b/src/gui/ClientInterfaceGUI.java index 892b53f..1523e38 100644 --- a/src/gui/ClientInterfaceGUI.java +++ b/src/gui/ClientInterfaceGUI.java @@ -60,7 +60,8 @@ public class ClientInterfaceGUI extends ClientInterface { int optionSearch = 0; String searchInput = ""; String[] list = clientManagement.listDirectory(); - MainWindow win = new MainWindow(); + JFrame win = new JFrame(); + win.setVisible(true); win.add(new DownloadSelectionGen(list, clientManagement, loggerC)); } catch (EmptyDirectory e) { writeLog("Server has no file in directory", LogLevel.Error);