public GUI(Startup startup, boolean Guion){
		guion = Guion;
		s = startup;
			users = new JList<String>(s.getUserNames());
			channels = new JList<String>(s.getChannelNames());
			userpane = new JScrollPane(users);
			channelpane = new JScrollPane(channels);
			areapane = new JScrollPane(area);
			
			lists.setLayout(new GridLayout(0,1));
			lists.add(userpane);
			lists.add(channelpane);
			
			data.setLayout(new BorderLayout());
			data.add(areapane, BorderLayout.EAST);
			data.add(lists, BorderLayout.CENTER);
			
			
			frame.setSize(500,500);
			frame.setDefaultCloseOperation(frame.EXIT_ON_CLOSE);
			frame.setLayout(new BorderLayout());
			
			frame.add(data, BorderLayout.CENTER);
			frame.add(field, BorderLayout.SOUTH);
			
			area.setEditable(false);
			field.addActionListener(this);
			
			frame.setVisible(guion);
			updatelists.start();
			
		
		try {
			File folder = new File("logs");
			if(!folder.exists()){
				folder.mkdir();
			}
			
			String[] simpletime = this.getSimpleTime();
			String time = "";
			for(String s: simpletime){
				time += "_" + s;
			}
			pwriter = new PrintWriter("logs" + File.separator + "log" + time + ".txt", "UTF-8");

		
		} catch (Exception  e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
			System.out.println(e.getCause());
		}
		
	}