Hi All, I have a panel on which it has a button and a text box,cost.On clicking on the button i will get a dialog box which is having the same text box,cost.it means both the text fields are refering to the same object,JTextField.
Now if i try to get the value entered on the text box on the dialog screen to the panel screen, the text field on the panel has become invisible. I am able to get the value in the action listner also.
Please help me out. Thanks in advance, chiranjeevi gunturu
You can add any child component to any parent only once.
Looks like you are trying to synch the two text fields. You can achieve this desired behavior by creating two text fields, adding a document listener to one of them and updating the second text field using the document notifications.