NetBeans Forums
| View previous topic :: View next topic |
| Author |
Message |
ael
Joined: 22 Jan 2009 Posts: 102
|
Posted: Mon Aug 02, 2010 12:05 am Post subject: How can i make the Detail Table List Observable? |
|
|
I have a master detail table but the only observable is the master table. How i can make the detail table an observable also?
The detail table is not updated
Hope anyone can help... |
|
| Back to top |
|
 |
ael
Joined: 22 Jan 2009 Posts: 102
|
Posted: Mon Aug 02, 2010 12:39 am Post subject: Problem Solved. |
|
|
Problem Solved.
Stupid NETBEANS 6.9 Stupid NETBEANS 6.9 Stupid NETBEANS 6.9
The TableDetail.Java did not generate property support.
| Code: |
@Transient
private PropertyChangeSupport changeSupport = new PropertyChangeSupport(this);
|
| Code: |
public void setTbEmployee(TbEmployee tbEmployee) {
TbEmployee oldTbEmployee = this.tbEmployee;
this.tbEmployee = tbEmployee;
changeSupport.firePropertyChange("tbEmployee", oldTbEmployee, tbEmployee);
} |
| Code: |
public void addPropertyChangeListener(PropertyChangeListener listener) {
changeSupport.addPropertyChangeListener(listener);
}
public void removePropertyChangeListener(PropertyChangeListener listener) {
changeSupport.removePropertyChangeListener(listener);
}
|
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|