During creation, getting original value from javabean
posted 13 years ago
I have a JTextField and I added a PropertyChangeListener to listen for changes to my Java Bean. This is working great. However, I need to set the original value in the text field when the form is loaded. I cannot use the PropertyChangeListener, because it hasn't changed. I am making a customized JTextField that will have my listner and all of my field objects will be extending this one. So, I cannot hardcode my getter. Is there a way to fire my PropertyChangeListener on intialization? How do I go about getting the value out of my JavaBean? Do I need to do reflection?