Results 1 to 4 of 4
  1. #1
    JVposter is offline Member
    Join Date
    Feb 2009
    Location
    Romania
    Posts
    11
    Rep Power
    0

    Default Jtable including picture

    hello!

    I need an example with a Jtable which included pictures

    For example
    I need one jtable with a single row and 2 columns, first column must be a string and second must be picture!

    regards,

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default

    What you need to do is to create a JTable that uses custom renderers -- here a JLabel that holds an ImageIcon for the picture. For sample code on how to manipulate JTable renderers, go to the source, the Sun Swing tutorials where you'll find sample code galore.

  3. #3
    JVposter is offline Member
    Join Date
    Feb 2009
    Location
    Romania
    Posts
    11
    Rep Power
    0

    Default

    Quote Originally Posted by Fubarable View Post
    What you need to do is to create a JTable that uses custom renderers -- here a JLabel that holds an ImageIcon for the picture. For sample code on how to manipulate JTable renderers, go to the source, the Sun Swing tutorials where you'll find sample code galore.
    Hello!

    Thanks
    the idea is to load in a Jtable a Jlable which contains the picture ?
    Am i right ?

    Regards,

  4. #4
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default

    No, I'm thinking that the JLabel is not physically present but is used simply to render the picture. The actual data loaded could be the image itself.

Similar Threads

  1. Replies: 13
    Last Post: 08-26-2009, 04:08 AM
  2. [SOLVED] Attaching/Including extra package
    By Eranga in forum NetBeans
    Replies: 16
    Last Post: 07-01-2008, 10:25 AM
  3. Picture help
    By deathnote11 in forum AWT / Swing
    Replies: 13
    Last Post: 06-03-2008, 05:46 PM
  4. Including JAR in applications
    By bugger in forum New To Java
    Replies: 0
    Last Post: 01-11-2008, 09:36 AM
  5. Including HTML in a JLabel
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 11-27-2007, 09:56 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
  •