NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

How can i make the Detail Table List Observable?

 
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Users
View previous topic :: View next topic  
Author Message
ael



Joined: 22 Jan 2009
Posts: 102

PostPosted: Mon Aug 02, 2010 12:05 am    Post subject: How can i make the Detail Table List Observable? Reply with quote

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

PostPosted: Mon Aug 02, 2010 12:39 am    Post subject: Problem Solved. Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Users All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo