Hi,
I'm lookin at a rather multilayered problem concerning Javax swing text components. In a nutshell I have several JTextFields spread across multiple panels(like in tabs or an inactive window the user could click back onto) that represent the same data, so they have to be kept in sync with each other.
First as a background I've extended the JTextField so that I can give it a "data" object (an object that represents info from a database record) and setup automatic listeners in the extended textfield that update the data object whenever its text is changed.
I did find that if I passed the text fields all the same document (the class not .txt file) that they would keep in sync visually but behind the sences it 5 textfields tried to update one data object at the same time and threw several errors.
Anyone have some suggestions for me? Kris McCuller
Programmer Portiva Corp.
kmcculler@portiva.com
I'm lookin at a rather multilayered problem concerning Javax swing text components. In a nutshell I have several JTextFields spread across multiple panels(like in tabs or an inactive window the user could click back onto) that represent the same data, so they have to be kept in sync with each other.
First as a background I've extended the JTextField so that I can give it a "data" object (an object that represents info from a database record) and setup automatic listeners in the extended textfield that update the data object whenever its text is changed.
I did find that if I passed the text fields all the same document (the class not .txt file) that they would keep in sync visually but behind the sences it 5 textfields tried to update one data object at the same time and threw several errors.
Anyone have some suggestions for me? Kris McCuller
Programmer Portiva Corp.
kmcculler@portiva.com