private void jPanel2MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jPanel2MouseClicked
        JFrame currentFrame = (JFrame) SwingUtilities.getWindowAncestor(this);
        try
        {
            UserClient.getOnlineUsers(new User(clientUserInMain.getText().trim()));
        } catch (IOException ex) {
            Logger.getLogger(MainContent.class.getName()).log(Level.SEVERE, null, ex);
        } catch (ClassNotFoundException ex) {
            Logger.getLogger(MainContent.class.getName()).log(Level.SEVERE, null, ex);
        } 
        currentFrame.dispose(); 
        
        //Ends program execution
        Runtime.getRuntime().exit(0);
    }//GEN-LAST:event_jPanel2MouseClicked