Results 1 to 3 of 3

Thread: JComboBox

  1. #1
    pinks_70986 is offline Member
    Join Date
    Feb 2009
    Posts
    18
    Rep Power
    0

    Default JComboBox

    How to use JCombobox which is editable.
    I want that if user enters a in the combo box then it should search database and return strings starting with a nd shuold be displayed in dropdown list of combo box(If possible the combobox must automatically dropdown). also if there are no words starting with enterd string then the dropdown list should not show anything.

  2. #2
    jurka is offline Member
    Join Date
    Jul 2008
    Posts
    67
    Rep Power
    0

    Default

    Here comes my solution:
    All the part searching can be done with some lightweight SQL database, so you need listener which registers the characters entered. If there has been over 3 chars entered then make search in sql. Show results by filling comboBox model.

    I'll make example if you would like.

  3. #3
    pinks_70986 is offline Member
    Join Date
    Feb 2009
    Posts
    18
    Rep Power
    0

    Question

    Quote Originally Posted by jurka View Post
    Here comes my solution:
    All the part searching can be done with some lightweight SQL database, so you need listener which registers the characters entered. If there has been over 3 chars entered then make search in sql. Show results by filling comboBox model.

    I'll make example if you would like.
    I have done the same but problem is that when i type in combobox the typed letter get selected and thus u cant type further. Please give me example.

Similar Threads

  1. I need help with JComboBox
    By eva21 in forum New To Java
    Replies: 1
    Last Post: 11-28-2008, 11:05 PM
  2. JCombobox
    By daniel50096230 in forum NetBeans
    Replies: 1
    Last Post: 09-21-2008, 01:23 PM
  3. JComboBox
    By Fosters in forum AWT / Swing
    Replies: 0
    Last Post: 08-10-2008, 02:22 PM
  4. Help with jComboBox
    By Marcus in forum AWT / Swing
    Replies: 2
    Last Post: 07-02-2007, 12:08 AM
  5. jcombobox
    By Freddie in forum AWT / Swing
    Replies: 4
    Last Post: 05-11-2007, 01:48 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •