Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7966947
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T06:34:06+00:00 2026-06-04T06:34:06+00:00

I have a simple JComboBox JComboBox comboBox = new JComboBox(); comboBox.setModel(new DefaultComboBoxModel(new String[] {foo,

  • 0

I have a simple JComboBox

JComboBox comboBox = new JComboBox();
comboBox.setModel(new DefaultComboBoxModel(new String[] {"foo", "bar"}));

In some cases the arrow keys work for the list traversal in the popup. But in certain cases the arrow keys do not work(no exceptions are raised in these cases).

I have narrowed down to the cases when the arrow keys do not work.

I wanted to know what could lead to the arrow keys not working so that I could limit my focus area. I am sorry but I cannot provide the SSCCE for this problem.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T06:34:08+00:00Added an answer on June 4, 2026 at 6:34 am

    I had removed the ActionMap for the arrow key in my custom autocomplete combobox which extends JComboBox

    getActionMap().getParent().remove("selectNext");
    

    I had not reset the action keys when the user entered some value not in the list and moved on. This lead to all the JComboboxes in the application to stop responding to the arrow keys.

    I had initially saved the action for the selectNext and reset the action at the error incidence mentioned above to get the code working

    Action selectNextAction = getActionMap().getParent().get("selectNext");
    //...
    getActionMap().getParent().put("selectNext", selectNextAction);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a simple comboBox with some Value/Text items in it. I have using
I have a simple ComboBox that has some simple values. I'm trying to do
I have a simple UserControl containing a ComboBox which is empty at first. The
I have simple HTML code with some JavaScript. It looks like: <html> <head> <script
I have a simple template for a combobox structured in this way: <ComboBox DockPanel.Dock=Left
I have this very simple Combobox in my XAML: <ComboBox Name=cmb1 Width=200 Height=23 ItemsSource={Binding}
I have a simple UserControl containing Label, ComboBox and Button. In brief, it is
All, I have a simple windows form with a combobox and a 'OK' button.
I have a simple combobox with a checkbox inside as such: <ComboBox Height=23 HorizontalAlignment=Left
I have been working with simple linq2sql statements for a bit but am new

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.