|
|
@ -60,9 +60,17 @@ public class ClientInterfaceGUI extends ClientInterface {
|
|
|
|
int optionSearch = 0;
|
|
|
|
int optionSearch = 0;
|
|
|
|
String searchInput = "";
|
|
|
|
String searchInput = "";
|
|
|
|
String[] list = clientManagement.listDirectory();
|
|
|
|
String[] list = clientManagement.listDirectory();
|
|
|
|
|
|
|
|
System.out.println("running ClientInterfaceGUI and creating window");
|
|
|
|
|
|
|
|
for(String listItem: list){
|
|
|
|
|
|
|
|
System.out.println(listItem);
|
|
|
|
|
|
|
|
}
|
|
|
|
JFrame win = new JFrame();
|
|
|
|
JFrame win = new JFrame();
|
|
|
|
win.setVisible(true);
|
|
|
|
win.setTitle("Client");
|
|
|
|
|
|
|
|
win.setSize(550, 250);
|
|
|
|
|
|
|
|
win.setLocationRelativeTo(null);
|
|
|
|
|
|
|
|
win.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
|
|
|
|
win.add(new DownloadSelectionGen(list, clientManagement, loggerC));
|
|
|
|
win.add(new DownloadSelectionGen(list, clientManagement, loggerC));
|
|
|
|
|
|
|
|
win.setVisible(true);
|
|
|
|
} catch (EmptyDirectory e) {
|
|
|
|
} catch (EmptyDirectory e) {
|
|
|
|
writeLog("Server has no file in directory", LogLevel.Error);
|
|
|
|
writeLog("Server has no file in directory", LogLevel.Error);
|
|
|
|
}
|
|
|
|
}
|
|
|
|