TextField cannot sync with my beans properties
In Netbeans 6.9.1, I create a bean "MyBeanPanelCount" which is a class extend javax.swing.JPanel and only have a property "count (type int)" with its getter, setter. I attached it in my post.
In new project, I use the myBeanPanelCount and 2 JTextField, 1 JButton.
- jTextField1: bind text with binding source is myBeanPanelCount, update mode is "always sync"
- jTextField2: display value of myBeanPanelCount's count property.
- jButton: increase myBeanPanelCount's count property. ActionPerform of button is below:
Then I run this project. Initial, jTextField1 show 1 and jTextField2 display nothing. I click Count button, jTextField1 still display "1", but jTextField2 display 2, then 3, 4, 5...
int count = myBeanPanelCount1.getCount();
I don't understand jTextField1 not update value of myBeanPanelCount's count property. Can you explain for me?
Thanks for reading, Sorry for my bad English :)
DesktopApplycation1.zip is the project which I descript