@Override
        public void actionPerformed(ActionEvent e) {
            for (int i = 0; i < tabbedPane.getTabCount(); i++) {
                ChannelPanel channel = (ChannelPanel) tabbedPane.getComponentAt(i);
                if (channel.title.equals(channel.name)) {
                    if (channel.getRightComponent() != null) {
                        channel.setRightComponent(null);
                        channel.setDividerSize(0);
                        channel.setDividerLocation(0);
                    } else {
                        channel.setRightComponent(channel.userListScrollPane);
                        channel.setDividerSize(5);
                        channel.setDividerLocation(GUI.frame.getWidth() - 160);
                    }
                }
            }
        }
    }
    static class ColorHashMap<K,V> extends HashMap<K,V> {
        protected V defaultValue;
        public ColorHashMap(V defaultValue) {
            this.defaultValue = defaultValue;
        }
        @Override
        public V get(Object k) {
            return containsKey(k) ? super.get(k) : defaultValue;
        }