wood burning stoves 2.0*
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 Murach's Java Servlets and JSP this week in the Servlets 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: beans don't communicate
 
Similar Threads
Getting value from an HtmlInputText
How to search a string value inside a Bean class
OutDated Entity Bean Attribute Values!!!
Stateless Session Bean Problems Singleton
updating value in bean 2 from bean 1