Code example for PropertyChangeListener

Methods: propertyChange

0
    }// </editor-fold>//GEN-END:initComponents 
 
    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
         
        PropertyChangeEvent propEvt = new PropertyChangeEvent(jTextField1, "name", null, jTextField1.getText());
        listener.propertyChange(propEvt);
    }//GEN-LAST:event_jButton1ActionPerformed 
 
    // Variables declaration - do not modify//GEN-BEGIN:variables 
    private javax.swing.Box.Filler filler1;
    private javax.swing.Box.Filler filler2;
    private javax.swing.Box.Filler filler3;
    private javax.swing.Box.Filler filler4;
    private javax.swing.JButton jButton1;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JTextField jTextField1;
    // End of variables declaration//GEN-END:variables 
}