Win a copy of Machine Learning for Business: Using Amazon SageMaker and JupyterE this week in the Jython/Python forum
or Object Design Style Guide in the Object-Oriented programming forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
  • Knute Snortum
Sheriffs:
  • Liutauras Vilda
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Joe Ess
  • salvin francis
  • fred rosenberger

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
  • 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 !!!
 
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.
 
Saloon Keeper
Posts: 21623
147
Android Eclipse IDE Tomcat Server Redhat Java 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
 
If you are using a wood chipper, you are doing it wrong. Even on this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!