Results 1 to 3 of 3

Thread: Custom JList

  1. #1
    daghost is offline Member
    Join Date
    Nov 2011
    Posts
    1
    Rep Power
    0

    Default Custom JList

    Hello,

    by default we have a JList filled with values which looks something like this:




    is it possible to make a custom JList, filled with more values in specified positions as in the picture below (for example "Name" value on the left, "Birth" on the right, "Address" at the bottom)? ("Name", "Birth" and "Address" should count as one element in JList)


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

    Default Re: Custom JList

    Yes, this is quite do-able, but you'll need to create your own renderer for the list. The Swing tutorials can help you with this.

  3. #3
    doWhile is offline Moderator
    Join Date
    Jul 2010
    Location
    California
    Posts
    1,641
    Rep Power
    7

Similar Threads

  1. Replies: 0
    Last Post: 09-12-2011, 02:06 PM
  2. Link one JList to another JList
    By mib1bee in forum AWT / Swing
    Replies: 1
    Last Post: 12-31-2010, 08:10 PM
  3. Link one JList to another JList
    By mib1bee in forum Advanced Java
    Replies: 1
    Last Post: 12-30-2010, 07:35 PM
  4. Link one JList to another JList
    By mib1bee in forum New To Java
    Replies: 1
    Last Post: 12-30-2010, 07:24 PM
  5. JList with custom Array
    By sony144 in forum Advanced Java
    Replies: 1
    Last Post: 10-09-2010, 07:35 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
  •