Re: Setting Opaque false on JComboBox
- From: jackroofman@xxxxxxxxx
- Date: 2 Mar 2006 09:12:34 -0800
That definitely is a start. Thanks.
Does any know of any way to modify that code to allow the ComboBox to
still be focusable, transparent, but not editable? Or to prevent the
characters edited in from showing up?
I've made a rather unique search feature where the combobox has a large
list of items and to seach for one, all you do is give it focus and
begin to type. It then starts jumping to the matches it finds.
Different, I know, but I wanted something unique.
It seems that the box has to have setEditable(true) in order to be
transparent. I need a way to override the editing so that you can still
focus on the JComboBox, and it can still receive KeyEvents, but so that
it does NOT end up inserting the characters I type on the list.
Is that even possible, or do I need to go with a more common searching
method?
.
- Prev by Date: excute programme on tree view ?
- Next by Date: JTree oddness
- Previous by thread: excute programme on tree view ?
- Next by thread: JTree oddness
- Index(es):
Relevant Pages
|