Hi, I’m working on a project with a couple of text fields and a drop down menu. The idea of the project is that an operator scans a bar code and that bar code is inputted into the left text field. The dropdown menu displays a number that is linked to a part number that is displayed in the right text field and by hitting confirm the left and right text fields are compared to determine if they are the same. There’s more to it, but that’s the general concept.
Because the operator needs to scan the bar code first, the left text field has requestFocus() so that when he scans the bar code, the number is inputted into the left text field. The problem though is that the dropdown menu won’t drop down when clicked on, and, correct me if I’m wrong, but I’m assuming this is because the left text field still has focus. Is there a way around this? Give the left text field focus and then take away the focus so that the dropdown menu can be used?