This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes beans don't communicate Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "beans don Watch "beans don New topic
Author

beans don't communicate

kate damond
Ranch Hand

Joined: Apr 17, 2001
Posts: 77
Hi,
I have an applet which contains (amongst other things)a tree, and a panel containing a tabbed pane. These are seperate beans. On change of value of the tree, I want some text on one of the panels to be updated.
So, in the valueChanged method of the Tree bean, I have the lines :
TabbedSummaryPanel tabSummary = ((TabbedSummaryPanel)topLevelApplet.getResultsPanel().getTabbedPane().getComponentAt(3));
tabSummary.setText(myCurrentPortfolioPath);
I know the setText method gets called because I put some debug in the method, but the text doesn't get updated.
I know the variable myCurrentPortfolioPath has the correct value at this point.
I can get the text to update quite happily via the stateChanged method of the tabbedPanel bean.
Any ideas ?
Thnks,
kate
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: beans don't communicate