/*
   * Creates new form ChatPanel
   *
   */
  public PlayersChatPanel() {
    userTableModel = new UserTableModel(); // needs to be set before initComponents();

    initComponents();
    setBackground(new Color(0, 0, 0, CHAT_ALPHA));

    jTablePlayers.setBackground(new Color(0, 0, 0, CHAT_ALPHA));
    jTablePlayers.setForeground(Color.white);
    jTablePlayers.setRowSorter(new MageTableRowSorter(userTableModel));
    setGUISize();

    TableUtil.setColumnWidthAndOrder(
        jTablePlayers, DEFAULT_COLUMNS_WIDTH, KEY_USERS_COLUMNS_WIDTH, KEY_USERS_COLUMNS_ORDER);
    userTableModel.initHeaderTooltips();

    jTablePlayers.setDefaultRenderer(Icon.class, new CountryCellRenderer());

    jScrollPaneTalk.setSystemMessagesPane(colorPaneSystem);
    jScrollPaneTalk.setOpaque(false);

    jScrollPaneSystem.getViewport().setOpaque(false);
    colorPaneSystem.setExtBackgroundColor(
        new Color(0, 0, 0, CHAT_ALPHA)); // Alpha = 255 not transparent
    colorPaneSystem.setBorder(new EmptyBorder(5, 5, 5, 5));
    if (jScrollPanePlayers != null) {
      jScrollPanePlayers.setBackground(new Color(0, 0, 0, CHAT_ALPHA));
      jScrollPanePlayers.getViewport().setBackground(new Color(0, 0, 0, CHAT_ALPHA));
    }
  }
 public void cleanUp() {
   TableUtil.saveColumnWidthAndOrderToPrefs(
       jTablePlayers, KEY_USERS_COLUMNS_WIDTH, KEY_USERS_COLUMNS_ORDER);
   jScrollPaneTalk.cleanUp();
 }