Need help, Event to change panel content
i put the same question here a couple of days ago, i've been trying to make this work, still no luck.
i have a border layout page, a tree on the left hand side(West panel), which is a separate class from the main panel, and i put a text field on the Center Panel, what i want to do is very simple, i want to click on a tree node, and change the value in the text field.
The ultimate goal of my work is to change the value of the text field, the the data should come from a servlet, but firstly i want to just do it via the tree node click event.
i know this could be a very simple question, but it has bothered me for days. Please help me, thank you very much!
don't know if it's correct way, i do as what Java normally does. I reference the target object to the source object using a setter method, and use method like "targetObject.setValue("something here");" to change the target TextField's content.
Yes, calling textField.setValue() is the correct way