private void jTextPane1KeyPressed(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_jTextPane1KeyPressed
        // TODO add your handling code here:
        if (evt.getKeyCode() == KeyEvent.VK_ENTER)
        {
            client.sendMessage("ROOMCHAT@" + roomId + "@" + transfer(jTextPane1.getText()) + "@" + client.frame.getTitle());
            pos.removeAllElements();
            pic.removeAllElements();
            jTextPane1.setText("");
            evt.consume();
        }
    }//GEN-LAST:event_jTextPane1KeyPressed