Results 1 to 9 of 9
  1. #1
    skidrow's Avatar
    skidrow is offline Member
    Join Date
    Mar 2011
    Posts
    14
    Rep Power
    0

    Default jList and jTextField

    I want jTextField and jList of me like this image. who can help me? i tks very very much


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

  3. #3
    skidrow's Avatar
    skidrow is offline Member
    Join Date
    Mar 2011
    Posts
    14
    Rep Power
    0

    Default

    I'm sorry because my english not good. I hava a jTextField and jList contain value. I want when i input jTextField, jList will look up a-z like this image


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

    Default

    You might want to add a DocumentListener to the PlainDocument held by the JTextField and in that listener change the selected item in the JList based on the document's text. For more on how to do this, please check the Swing tutorials.

  5. #5
    skidrow's Avatar
    skidrow is offline Member
    Join Date
    Mar 2011
    Posts
    14
    Rep Power
    0

    Default

    My jList available and i want look up value from jList through jTextField, so i want when input jTextField, jList will look up my value.

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

  7. #7
    skidrow's Avatar
    skidrow is offline Member
    Join Date
    Mar 2011
    Posts
    14
    Rep Power
    0

    Default

    i don't know, i'm trying

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

    Default

    Quote Originally Posted by skidrow View Post
    i don't know, i'm trying
    You don't seem to be asking a valid question at this point, and so there's little more advice we can give other than that you keep trying. If you get stuck then create an SSCCE and post it here along with a specific question, and you'll likely find plenty of people who will be able to help you.

  9. #9
    skidrow's Avatar
    skidrow is offline Member
    Join Date
    Mar 2011
    Posts
    14
    Rep Power
    0

Similar Threads

  1. Link one JList to another JList
    By mib1bee in forum AWT / Swing
    Replies: 1
    Last Post: 12-31-2010, 07:10 PM
  2. Link one JList to another JList
    By mib1bee in forum Advanced Java
    Replies: 1
    Last Post: 12-30-2010, 06:35 PM
  3. Link one JList to another JList
    By mib1bee in forum New To Java
    Replies: 1
    Last Post: 12-30-2010, 06:24 PM
  4. JList
    By nawl in forum New To Java
    Replies: 2
    Last Post: 05-21-2010, 06:37 AM
  5. Replies: 1
    Last Post: 01-30-2009, 06:44 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
  •