Results 1 to 3 of 3
  1. #1
    JohnTayler is offline Member
    Join Date
    Oct 2008
    Posts
    1
    Rep Power
    0

    Default Jface Viewer help

    Hi,
    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...

  2. #2
    trax is offline Member
    Join Date
    Mar 2009
    Posts
    42
    Rep Power
    0

    Default

    If u just want to display the data the u can use table instead of table viewer.

  3. #3
    eazyigz is offline Member
    Join Date
    Apr 2009
    Posts
    1
    Rep Power
    0

    Default 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."

Similar Threads

  1. First JFace application
    By Java Tip in forum SWT Tips
    Replies: 0
    Last Post: 07-02-2008, 09:13 PM
  2. JFace Window
    By Java Tip in forum SWT Tips
    Replies: 0
    Last Post: 07-02-2008, 09:12 PM
  3. File Viewer in SWT
    By Java Tip in forum SWT Tips
    Replies: 0
    Last Post: 07-02-2008, 08:59 PM
  4. Jface + Gef
    By Eric in forum Advanced Java
    Replies: 1
    Last Post: 07-05-2007, 09:07 PM
  5. iSQL-Viewer 3.0.0
    By levent in forum Java Software
    Replies: 0
    Last Post: 06-04-2007, 09:06 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •