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 7775269
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T17:35:15+00:00 2026-06-01T17:35:15+00:00

I have a few different input textboxes which you can enter a command into,

  • 0

I have a few different input textboxes which you can enter a command into, press enter, and then it pulls up some information. I have a few different textboxes who (applying to different parts of information). When I press enter, it also moves the focus onto the next input box. How do I stop this? I can’t simply use the consume() method in the keyevent class since that would entirely block the enter key, which is not what I want

  • 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-01T17:35:17+00:00Added an answer on June 1, 2026 at 5:35 pm

    Actually, I just found out how to fix this issue. I used the method belonging to Container called requestFocus() (see http://www.javaworld.com/javaworld/jw-07-1998/jw-07-swing-focus.html). In each element I added this line to the end of the keyEvent action and it worked perfectly!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a few different classes which origin is a another class. I have
I have been researching a few different apps lately for my company which are
I have a head file which I am using for a few different pages.
I have several TextBoxes, which display angular values. I format these using different custom
I am writing an application, where I do have few different windows implemented, where
I have a few different things open in the terminal whenever I'm developing --
We have a few different programs all compiled together in the same suite, recently
I have defined a few different functions in my .bash_profile . I usually remember
I have tried this a few different ways and it always seems to fail.
I have made up a few different custom cells in my UITableView in Interface

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.