Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to reflect an event that occurs in a bean to an applet which holds the bean ?!!

 
Meghna ks
Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi , Here's my design of a bean -> Propertiesbean which is similar to a propertylist that exists in VisualCafe or VB.
I have a bunch of Labels 7 TextFields which are laid on panels. The panels are furthur added to a splitpane, and finally, the splitpane is added to a scrollpane. In the splitpane, the left component is the panel that comprises of labels, and the right component is a bunch of TextFields & Comboboxes.
My question is : Whenever I type in something inside the textfield of the bean, the text I type must be reflected on a TextField which already exists inside an applet which also holds the bean. How do I take care of this ?!! I would really appreciate it if someone can give me an approach to this problem ?!!
Thanks
Meghna
 
Meghna ks
Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm still waiting. Hope to find some answers soon !!!
 
syed fazal faheem
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Why dont u try using a document model for the text fields. If u use the same model for both the text fields, changing value in one will reflect in another.
Hope this solves ur problem.
fazal.
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18091
48
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The magic words are "property change listener"
This may help:
http://www.ddj.com/articles/1999/9902/9902d/9902d.htm
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic