D
Daniel Pitts
I have a JTextField which the user can enter data, and this affects the
state of a JList.
I'd like the user to be able to type in the JTextField, but then press
the up-arrow or down-arrow to adjust the current selection.
What would be the best approach? I can listen for the up/down keystrokes
myself, and adjust the selection myself, but that seems to be a
short-cut hack that might lead to inconsistent behavior.
Is there another approach?
Thanks,
Daniel.
state of a JList.
I'd like the user to be able to type in the JTextField, but then press
the up-arrow or down-arrow to adjust the current selection.
What would be the best approach? I can listen for the up/down keystrokes
myself, and adjust the selection myself, but that seems to be a
short-cut hack that might lead to inconsistent behavior.
Is there another approach?
Thanks,
Daniel.