/*
 * LearnJava3.java
 *
 * Created on March 20, 2002, 12:39 AM
 */

/**
 *
 * @author  Pat
 */
public class LearnJava3 extends javax.swing.JFrame {
    
    /** Creates new form LearnJava3 */
    public LearnJava3() {
        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.
     */
    private void initComponents() {//GEN-BEGIN:initComponents
        numericField1 = new magicbeans.NumericField();
        numericField2 = new magicbeans.NumericField();

        getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

        addWindowListener(new java.awt.event.WindowAdapter() {
            public void windowClosing(java.awt.event.WindowEvent evt) {
                exitForm(evt);
            }
        });

        numericField1.setText("numericField1");
        numericField1.addPropertyChangeListener(new java.beans.PropertyChangeListener() {
            public void propertyChange(java.beans.PropertyChangeEvent evt) {
                numericField1PropertyChange(evt);
            }
        });

        getContentPane().add(numericField1, new org.netbeans.lib.awtextra.AbsoluteConstraints(50, 30, 90, -1));

        numericField2.setText("numericField2");
        getContentPane().add(numericField2, new org.netbeans.lib.awtextra.AbsoluteConstraints(50, 80, 90, -1));

        pack();
    }//GEN-END:initComponents

    private void numericField1PropertyChange(java.beans.PropertyChangeEvent evt) {//GEN-FIRST:event_numericField1PropertyChange
        numericField2.setValue(numericField1.getValue());
    }//GEN-LAST:event_numericField1PropertyChange
    
    /** Exit the Application */
    private void exitForm(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_exitForm
        System.exit(0);
    }//GEN-LAST:event_exitForm
    
    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        new LearnJava3().show();
    }
    
    
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private magicbeans.NumericField numericField2;
    private magicbeans.NumericField numericField1;
    // End of variables declaration//GEN-END:variables
    
}

