Results 1 to 4 of 4

Thread: Product View

  1. #1
    razmyasdfg is offline Member
    Join Date
    Jul 2008
    Location
    London (Kingsbury)
    Posts
    41
    Rep Power
    0

    Default Product View

    Hi everyone
    I am visiting the site after log time because need some help

    I have a product table in my database (product_code, product_name,product_price)

    and I needed to display all the product in a JList with Product name and an Image or an icon
    how can i do that? and when I add an new product an new icon should add to JList
    how can i do that?

    if anybody has link of an example please post it

    thank you

  2. #2
    camickr is offline Senior Member
    Join Date
    Jul 2009
    Posts
    1,233
    Rep Power
    7

  3. #3
    razmyasdfg is offline Member
    Join Date
    Jul 2008
    Location
    London (Kingsbury)
    Posts
    41
    Rep Power
    0

    Default Re: Product View

    Quote Originally Posted by camickr View Post
    thank you for your reply.
    i know how to add data to JTable i need something like that picture that i attached with Product View-product-view.png

    you can see the (sweet corn , banana , corn ) i need to create same like this
    the container can be a JList or JPanel
    thank you
    Last edited by razmyasdfg; 12-17-2011 at 01:39 AM.

  4. #4
    camickr is offline Senior Member
    Join Date
    Jul 2009
    Posts
    1,233
    Rep Power
    7

    Default Re: Product View

    You can add an ImageIcon to a JList to render an image.

Similar Threads

  1. product of even numbers
    By Basilisk3 in forum Java Applets
    Replies: 10
    Last Post: 07-05-2010, 09:02 PM
  2. How enter this mode-gui/design-view/code-view
    By lse123 in forum NetBeans
    Replies: 0
    Last Post: 02-28-2010, 09:09 PM
  3. pi and the wallis' product
    By camper2 in forum New To Java
    Replies: 5
    Last Post: 03-09-2009, 10:57 PM
  4. Finished Product: What now?
    By Unome in forum Java Applets
    Replies: 5
    Last Post: 02-11-2009, 10:41 AM
  5. Updating a view using actions in a seperate view
    By xcallmejudasx in forum Eclipse
    Replies: 0
    Last Post: 10-24-2008, 09:24 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
  •