public ChatPanel(User user){
		Dimension channelListSize = new Dimension(190, 450);
		this.dbCon = DatabaseConnection.getInstance();
		this.user = user;
		this.updater = new ChannelListUpdater();
		this.imgLdr = new GUIImageLoader();
		setLayout(new BoxLayout(this, BoxLayout.PAGE_AXIS));
		setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));
		
		JPanel jpnlUpperPanel = new JPanel();
			jpnlUpperPanel.setLayout(new BoxLayout(jpnlUpperPanel, BoxLayout.X_AXIS));
			
			jtxtChannelName = new JTextField(20);
			jtxtChannelName.setDocument(new LengthRestrictedDocument(20));
			jtxtChannelName.setPreferredSize(new Dimension(100, 25));
			jtxtChannelName.setMaximumSize(jtxtChannelName.getPreferredSize());
			jtxtChannelName.addFocusListener(new FLChatChannel());
			jtxtChannelName.setText("Deu-1");
			jpnlUpperPanel.add(jtxtChannelName);
		
			jbttnJoin = new JGCButton("Join");
			jbttnJoin.setPreferredSize(new Dimension(50, 25));
			jbttnJoin.addActionListener(new ALJoinChannel());
			jpnlUpperPanel.add(jbttnJoin);
			
			jbttnRefresh = new JButton();
			bffredImgRefreshButtonInactive = imgLdr.loadBufferedImage(GUIImageLoader.REFRESH_BUTTON_INAKTIVE);
			refreshButtonLabeled = (bffredImgRefreshButtonInactive == null); 
			if(refreshButtonLabeled){
				jbttnRefresh.setText("Refresh");
				jbttnRefresh.setPreferredSize(new Dimension(20, 25));
			}else{
				jbttnRefresh.setIcon(new ImageIcon(bffredImgRefreshButtonInactive));
				jbttnRefresh.setPreferredSize(new Dimension(20, 25));
				ImgRefreshButtonActive = imgLdr.loadImage(GUIImageLoader.REFRESH_BUTTON_AKTIVE);
			}
			jbttnRefresh.addMouseListener(new MLAutoRefresh());
			jpnlUpperPanel.add(jbttnRefresh);
			this.refreshing = false;
		this.add(jpnlUpperPanel);
		
		add(Box.createVerticalStrut(10));

		jlstChannels = new JList<>();
		jlstChannels.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
		jlstChannels.addMouseListener(new MAChannelList());
		loadChannel();
		JScrollPane jscrllChannels = new JScrollPane(jlstChannels,
										            JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,
										            JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
		jscrllChannels.setPreferredSize(channelListSize);
		this.add(jscrllChannels);
		updater.start();
		updater.setRunning(refreshing);
	}