private void inviteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_inviteActionPerformed
        // TODO add your handling code here:
        JComboBox cb = (JComboBox) evt.getSource();
        String name = (String)cb.getSelectedItem();
        if ( name.equals("invite") )
        {
            //TODO:need to fix
            /*
            for ( int i = client.onLineUsers.size() - 1; i >=0; i-- )
            {           
                boolean jump = true;
                for ( int j = usernames.size() - 1; j >= 0; j-- )
                {
                    if (client.onLineUsers.get(i).equals(usernames.get(j)))
                    {
                        jump = false;
                    }
                }
                if (jump)
                {
                    sendComboBox(client.onLineUsers.get(i));
                }
            }
            for ( int i = client.onLineUsers.size() - 1; i >=0; i-- )
            {
                boolean jump = true;
                for ( int j = usernames.size() - 1; j >= 0; j-- )
                {
                    if (client.onLineUsers.get(i).equals(usernames.get(j)))
                    {
                        jump = false;
                    }
                }
                if (jump)
                {
                    usernames.add(client.onLineUsers.get(i));
                    model.addElement(client.onLineUsers.get(i));
                }
            }
            */
        }
        else
        {
            boolean jump = true;
            for ( int i = usernames.size() - 1; i >= 0; i-- )
            {
                if (usernames.get(i).equals(name))
                {
                    jump = false;
                }
            }
            if (jump)
            {
                sendComboBox(name);
                usernames.add(name);
                model.addElement(name);
            }
        }
    }//GEN-LAST:event_inviteActionPerformed