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. Advertising

  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. Advertising

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. KLD
    Replies:
    3
    Views:
    1,232
    Tony Morris
    Feb 15, 2004
  2. Guest

    Editable JComboBox

    Guest, Feb 16, 2005, in forum: Java
    Replies:
    0
    Views:
    533
    Guest
    Feb 16, 2005
  3. Jacques Chaurette

    using editable jcombobox

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

    Editable JComboBox problems

    Allen, Oct 16, 2006, in forum: Java
    Replies:
    0
    Views:
    329
    Allen
    Oct 16, 2006
  5. Ben Phillips

    JComboBox: setting the editable text

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

Share This Page