private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton2ActionPerformed
        // TODO add your handling code here: SAVE 
        if (APPLET.currentlyLoggedIn)
        {
            String post = "";
            
            for (int y = 0; y < 5; y++)
            {
                post+=Spell.passives.indexOf(app.passiveList[y])+",";
            }
            for (int y = 0; y < 5; y++)
            {
                for (int i = 0; i < app.spellList[app.spellBook].length; i++)
                {
                    post+=Spell.spells.indexOf(app.spellList[y][i]);
                    post+=(i==app.spellList[y].length-1)&&(y==4)?"":",";
                }
            }
            
//           System.out.println(post+","+app.jtb.getText());
            app.CTD.postSpells(post,APPLET.jtb.getText());
        }
    }//GEN-LAST:event_jButton2ActionPerformed