alright, the reason I put this in PHP is because I typed in "netbeans" in the search bar and PHP popped up the most times
---

for the past couple of hours or so I have been trying to create a semi-simple and intuitive phone program that:

1. is able to input a number via textbox or keypad
2. is able to "play call" that number by putting the phone in a "call state"
3. is able to "play hang up" that number via a "not in call state"
4. is able to save a number in the textbox and recall/delete that number
5. is able to "play send" a message with the ability to stop that message "in transit" (see the little progress bar on the bottom)
6. is password protected.

http://i60.tinypic.com/1zd7z9x.jpg

I was able to do step 1, but for the life of me I don't know how to do the rest. If I can find out how to do step 4 I can find a way to use either a popup or a colored button that flashes red or green between the two states.

step 5 seems to be focused around the progress bar.

step 6 should be step 1 but I may be wrong, and I kind of need help on that one too.

I'll have to split the code up into parts because it is long but thanks in advance.


Code:
package appPackage;

import javax.script.ScriptEngine;
import javax.script.ScriptEngineManager;
import javax.script.ScriptException;

/**
 *
 * @author Nelson
 */
public class PhoneGUI extends javax.swing.JFrame {

    /**
     * Creates new form PhoneGUI
     */
    public PhoneGUI() {
        initComponents();
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">                          
    private void initComponents() {

        jTextField2 = new javax.swing.JTextField();
        phoneNumberDisplay = new javax.swing.JTextField();
        keyPad1 = new javax.swing.JButton();
        keyPad2 = new javax.swing.JButton();
        keyPad3 = new javax.swing.JButton();
        keyPad4 = new javax.swing.JButton();
        keyPad5 = new javax.swing.JButton();
        keyPad6 = new javax.swing.JButton();
        keyPad7 = new javax.swing.JButton();
        keyPad8 = new javax.swing.JButton();
        keyPad9 = new javax.swing.JButton();
        keyPad0 = new javax.swing.JButton();
        keyPadAst = new javax.swing.JButton();
        keyPadPou = new javax.swing.JButton();
        progClose = new javax.swing.JButton();
        buttDial = new javax.swing.JButton();
        buttReDial = new javax.swing.JButton();
        buttStop = new javax.swing.JButton();
        buttSave = new javax.swing.JButton();
        buttDelete = new javax.swing.JButton();
        jScrollPane1 = new javax.swing.JScrollPane();
        jList1 = new javax.swing.JList();
        checkConfirm = new javax.swing.JCheckBox();
        passField = new javax.swing.JPasswordField();
        passConfirm = new javax.swing.JButton();
        warnLabel = new javax.swing.JLabel();
        jToggleButton1 = new javax.swing.JToggleButton();
        messageDisplay = new javax.swing.JTextField();
        sendBar = new javax.swing.JProgressBar();
        phoneLabel = new javax.swing.JLabel();