Results 1 to 7 of 7
  1. #1
    AnnSophie is offline Member
    Join Date
    Oct 2010
    Posts
    4
    Rep Power
    0

    Smile Jtable with image

    How to retrives image,name data field from my sql
    database and display it into Jtable??

  2. #2
    mine0926 is offline Senior Member
    Join Date
    Apr 2010
    Location
    Philippines
    Posts
    580
    Rep Power
    5

    Default

    ??
    Can you explain it more? Be more specific on what you are asking..

  3. #3
    AnnSophie is offline Member
    Join Date
    Oct 2010
    Posts
    4
    Rep Power
    0

    Default Image on Jtable

    I am not able to retrive image from my sql data base to Jtable .It displayed as
    @B12344..I just need to display as image .

  4. #4
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,457
    Rep Power
    20

    Default

    Construct an ImageIcon from the image and override getColumnClass to return Icon.class for the column.

    db

  5. #5
    mine0926 is offline Senior Member
    Join Date
    Apr 2010
    Location
    Philippines
    Posts
    580
    Rep Power
    5

    Default

    Show what have you done? And do you receive any error message?

  6. #6
    AnnSophie is offline Member
    Join Date
    Oct 2010
    Posts
    4
    Rep Power
    0

    Default retriving image from database

    Thanks for the reply..Construct an ImageIcon for the image and created getColumnClass to return Icon.class for that column.
    Now it is working fine..and got images on Jtable.Thanks
    for the help...
    Last edited by AnnSophie; 10-13-2010 at 12:47 PM.

  7. #7
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,457
    Rep Power
    20

    Default

    Evidently I'm invisible, so I'll gracefully retire from this thread.

    db

Similar Threads

  1. JTable image
    By anilkumar_vist in forum New To Java
    Replies: 0
    Last Post: 02-09-2010, 09:05 AM
  2. Replies: 1
    Last Post: 04-17-2009, 01:44 AM
  3. Replies: 14
    Last Post: 04-10-2009, 09:46 AM
  4. Replies: 2
    Last Post: 05-15-2008, 11:15 AM
  5. Replies: 0
    Last Post: 01-08-2008, 06:29 PM

Posting Permissions

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