This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Swing Binding Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply Bookmark "Swing Binding" Watch "Swing Binding" New topic
Author

Swing Binding

Marcel van der Ven
Greenhorn

Joined: Mar 20, 2010
Posts: 14
Hello,

I have a question about swingbinding in Java. When I have a entity in Java and this entity´s fields are bind to the fields on the GUI, how can I reset the entity´s fields so that the GUI fields are also reset to the initial values?
At this moment when I save my entity to the database and want to reset the fields in the GUI I make a new instance, but the swingbinding binds to the reference, and now I have to rebind all fields in the GUI to the new instance, is there a easier way to do this? Or am I doing something wrong in the binding?

I now I can make a method to reset all fields, but I have a lot of entity's and some of them have a lot of fields.

Thanks,

Marcel
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Swing Binding
 
Similar Threads
"reset " button not working properly
Reset button in not working
Properties/Settings - a design question
My SCEA Part 1Study Notes
Regarding "html: reset " button