Hi Abhinav,

I have a table which is having some values and i have another set of text box which need to be populated as per the row selected in table by mouse so how to populate the text box when user click r selects any rox in that table
both the components are on the same base container.

Here how I would implement this feature:
* add a selection listener to the table => table.getListSelectionModel().addListSelectionListener(listener) * in your listener get the selected bean => table.getModel().getRow(table.getSelectedRow()) * in your listener copy the bean data into the text fields => nameField.setText(bean.getName())


Regards Dany


On 07.05.2008, at 12:45, Abhinav wrote:

regarding the table issue ...for listeners
actually will describe my prob in a brief :]
I have a table which is having some values and i have another set of text box which need to be populated as per the row selected in table by mouse so how to populate the text box when user click r selects any rox in that table
both the components are on the same base container.

plz reverst back asap .....

You are invited to Get a Free AOL Email ID. Click here.

Reply via email to