Skip to main content

Binding: how to replicate the 'tracks' mark-up attribute ?

2 replies [Last post]
thughes
Offline
Joined: 2006-02-17
Points: 0

I have been hand-coding a 'master-detail' table similar to the example one in the markup tutorial, in order to familiarise myself with the api. I can create the TabularDataModel, and use it in a JNTable, and create a JNForm and bind it to the same model. However, I can't figure out how to implement the binding which tracks the selection of rows in the table, and pulls the selected row into the form. Can anyone point me in the right direction please?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
thughes
Offline
Joined: 2006-02-17
Points: 0

Excellent, thanks, I will try out your suggestions....

Jeanette Winzenburg

Have a look at the RowSelector in the form package - it connects a
ListSelectionModel with a DataModel and updates the DataModel's
recordIndex in synch with the leadSelection.

There's a complete code example in jdnc_api/src/demo.

Jeanette

---------------------------------------------------------------------
To unsubscribe, e-mail: jdnc-unsubscribe@jdnc.dev.java.net
For additional commands, e-mail: jdnc-help@jdnc.dev.java.net