-
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
-
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)
-
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
Code:
JComboBox.getEditor.getEditorComponent.AddFocusListener(...);
compare to JComboBox that is not Editable.
Code:
JComboBox.AddFocusListener(...);
Anyway, Thanks for the link.
geje
-
Read again, you are over complicating your assignment....