Mapping data from one text field to the other text field.
Can i map the data in one text field to the other text field?
I mean I have one window with text field emp_id in one window and i want to mapp its data to the other text field say emp_no in other window.
is this possible using swing?
Can any body help.
Thanks and regards.
> Can i map the data in one text field to the other
> text field?
> I mean I have one window with text field emp_id in
> one window and i want to mapp its data to the other
> text field say emp_no in other window.
> is this possible using swing?
> Can any body help.
> Thanks and regards.
In short yes.
Assuming you have a data model (M) which relates id and num then build your C (as in MVC) to listen to your first text field, access your M to update your second text field. If it's in a different window make sure your C has a reference for it.
> > What do you mean by the verb 'map'?
> > In other words, what process do you want?
>
> I think he wants to do something like select one item
> from a master list and then display and edit it in a
> separate field.
And automatically synching both?
It should be a DocumentListener's job, then.
hiwaa at 2007-7-16 13:22:18 >

> > What do you mean by the verb 'map'?
> > In other words, what process do you want?
>
> I think he wants to do something like select one item
> from a master list and then display and edit it in a
> separate field.
And automatically synching both?
It should be a DocumentListener's job, then.
hiwaa at 2007-7-16 13:22:18 >
