Results 1 to 4 of 4
  1. #1
    mine0926 is offline Senior Member
    Join Date
    Apr 2010
    Location
    Philippines
    Posts
    580
    Rep Power
    5

    Default JComboBox tutorial

    Hi, I am developing a database application (is that the right term?), my employer want to load very unique record in a column/field so they can choose/auto search thats why I use JComboBox and set editable to true. Now I am having problems and a little bit confuse on handling JComboBox. I just want to ask for websites that expalin well the JComboBox that can be edited.

    Thanks,
    geje
    Last edited by mine0926; 07-15-2010 at 03:07 AM.

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

    Default

    The sun tutorials provides quite a comprehensive tutorial, including how to use an editable JComboBox.
    How to Use Combo Boxes (The Java™ Tutorials > Creating a GUI With JFC/Swing > Using Swing Components)

  3. #3
    mine0926 is offline Senior Member
    Join Date
    Apr 2010
    Location
    Philippines
    Posts
    580
    Rep Power
    5

    Default

    Thanks for the link, but the site did not explain it all. Like updating the (1) UI of ComboBox when somthing change and user click the dropdown button. (2) jComboBox's transferFocus() method works different when it is editable.

    I think I will have more problem in JComboBox thats why I am looking for a site that will explain things and similar things that I mentioned above.

    Also, like adding event listener in a JComboBox, if JComboBox is Editable then I have to code it like this
    Java Code:
     JComboBox.getEditor.getEditorComponent.AddFocusListener(...);

    compare to JComboBox that is not Editable.
    Java Code:
     JComboBox.AddFocusListener(...);
    Anyway, Thanks for the link.
    geje

  4. #4
    al_Marshy_1981 is offline Senior Member
    Join Date
    Feb 2010
    Location
    Waterford, Ireland
    Posts
    748
    Rep Power
    5

Similar Threads

  1. Replies: 2
    Last Post: 12-10-2009, 01:58 PM
  2. JSF Tutorial
    By teststest in forum JavaServer Faces (JSF)
    Replies: 9
    Last Post: 11-15-2009, 05:31 AM
  3. ejb tutorial
    By marcellis in forum Enterprise JavaBeans (EJB)
    Replies: 3
    Last Post: 09-30-2009, 01:43 PM
  4. tutorial help
    By yuriythebest in forum Java Applets
    Replies: 1
    Last Post: 11-12-2008, 04:34 PM
  5. RCP tutorial
    By javaplus in forum Advanced Java
    Replies: 1
    Last Post: 12-25-2007, 04:19 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
  •