From 262cd29f12b0c45910a980699d89a9d90cee6757 Mon Sep 17 00:00:00 2001 From: Dor Bivas Date: Sat, 22 Feb 2014 18:33:29 +0200 Subject: Client UI: minimum size and more * minimum size of the window is now working. * Window Title ("Dor-Chat"). * Temporary panel text color (White) * Deleting white spaces. --- src/Client/UserInterface.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Client/UserInterface.java b/src/Client/UserInterface.java index c715638..93ad69b 100644 --- a/src/Client/UserInterface.java +++ b/src/Client/UserInterface.java @@ -58,20 +58,20 @@ public class UserInterface extends JFrame implements ActionListener, KeyListener public UserInterface(ChatClient client) { + this.setTitle("Dor-Chat IRC"); this.client = client; + this.setSize(800, 400); + this.setMinimumSize(new Dimension(600,170)); Font font = new Font ("Ariel" , Font.BOLD ,12); - this.setIconImage(getIconImage()); - this.setSize(800, 400); output = new JTextArea(10, 20); - output.setBackground(Color.green); + output.setBackground(Color.white); output.setFont(font); output.setEditable(false); output.setLineWrap(true); output.setWrapStyleWord(true); - - + JPanel msgPanel = new JPanel(); JPanel conPanel = new JPanel(); JPanel vertPanel = new JPanel(); -- cgit v1.2.3