Jface Viewer help
I,ve problem with jface table viewer.
I want to make table viewer. And information in this viewer I want to get from mysql table.
For example when i push some button it will create table viewer in the composite and the rows in this viewer will be getted from database table(every one row in the table must be showed in viewer)
Please if someone can help me....
It's very importnant to do it...
If u just want to display the data the u can use table instead of table viewer.
Table vs TableViewer
Can you please provide an example of how you would set up a Table object to display items from a database? I am mainly interested in using domain objects, thus preventing multiple fetching.
Quote from SWT and JFace In Action:
"An issue to be aware of when using a
content provider is that it will always execute in the UI thread. This means updates to the interface will be waiting for your methods to complete, so you definitely shouldn’t query a database to get your updates. The content provider should traverse a graph of already-loaded domain objects to select the appropriate content to display."