How to change the editable JComboBox's model when starting or ending typed

Discussion in 'Java' started by @CL, Nov 23, 2006.

  1. @CL

    @CL Guest

    Hi,all

    I created an autocomplete JComboBox,which used the
    Glazedlists(http://publicobject.com/glazedlists) AutoCompleteSupport,
    when I typed somthing into comboBox,I need the autocomplete to search
    the result in model one,
    and when I clicked the comboBox's right arrow button,I just need it
    popup the items in model two,
    so the problem is how can I changed the model of comboBox when entered
    editing and clicked arrow button?

    regards,
    Richard
     
    @CL, Nov 23, 2006
    #1
    1. Advertisements

  2. @CL

    @CL Guest

    I had tried the PopupMenuListener,
    but when editing,if the typed matchs the item in model one,
    it popups too,so it can't work.
    and the keyListener and focusListener seems no sense too,
    anyone can suggest ?

    regards,
    Richard
     
    @CL, Nov 23, 2006
    #2
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Srinivasa T.N.
    Replies:
    7
    Views:
    728
    Amy G
    Dec 1, 2003
  2. KLD
    Replies:
    3
    Views:
    1,429
    Tony Morris
    Feb 15, 2004
  3. Guest

    Editable JComboBox

    Guest, Feb 16, 2005, in forum: Java
    Replies:
    0
    Views:
    714
    Guest
    Feb 16, 2005
  4. Jacques Chaurette

    using editable jcombobox

    Jacques Chaurette, Oct 2, 2005, in forum: Java
    Replies:
    7
    Views:
    6,279
    Ravindra Khyalia
    Sep 6, 2007
  5. Allen

    Editable JComboBox problems

    Allen, Oct 16, 2006, in forum: Java
    Replies:
    0
    Views:
    460
    Allen
    Oct 16, 2006
  6. Jona
    Replies:
    9
    Views:
    561
    Jim Langston
    May 10, 2007
  7. Umesh
    Replies:
    31
    Views:
    1,583
    Walter Roberson
    Jun 3, 2007
  8. Ben Phillips

    JComboBox: setting the editable text

    Ben Phillips, Oct 8, 2008, in forum: Java
    Replies:
    8
    Views:
    8,770
    Ben Phillips
    Oct 9, 2008
Loading...