• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm still waiting. Hope to find some answers soon !!!
 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Saloon Keeper
Posts: 27762
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic