Questions tagged [keyboardfocusmanager]
22 questions
0
votes
0 answers
Find the Parent RichTextBox from the Focused Hyperlink Within
The Setting:
I have a RichTextBox containing a hyperink and a DropDownButton somewhere else in my UI. Now when I click the button's DropDown open and afterwards click somewhere else on my UI, the DropDown is implemented to close, and check if it…

Martin
- 5,714
- 2
- 21
- 41
0
votes
1 answer
Change JavaFX Tab-Button orderring of TextFields from "Left to Right" to "Right to Left" by fxml file
Before asking, i should say that the answer of can be found maybe in JavaFX: How to change the focus traversal policy?, but i don't looking for any java code, i would like a way by editing the Fxml file
There is a FXML file that has some TextFields…

Elyas Hadizadeh
- 3,289
- 8
- 40
- 54
0
votes
1 answer
KeyboardFocusManager issue, Maven vs IDE build
I am trying to add keyboard shortcuts to an existing Java app. The relevant part is as follows:
public final class Main{
...
private MyKeyEventDispatcher keyDispatcher; /*implements KeyEventDispatcher*/
...
…
user1820845
0
votes
0 answers
Dispatching KeyEvents to an unfocused Component
Here's the scenario:
I have two java applications. The first is a visual application which employs a swing GUI, all wrapped up in a JFrame which has very complex behavior (very old code base) of which I can NOT change. I simply have a hook to the…

SyntaxTerror
- 346
- 1
- 10
0
votes
0 answers
Minimize JFrame faster then screen capture program gets activated
I have program which I need to minimize when user presses ANY key. One more thing what needs to happen by pressing any key it to minimize program faster then some screen capture software captures it (suppose he activates only by keyboard). I did…

Aleksandar
- 1,163
- 22
- 41
0
votes
1 answer
Using an external class for handling bar code scanner input?
I'm building a basic Point of Sale application and I've been looking for ways of having my main POS JFrame listen for bar code input. I found this code (slightly modified) posted by Cyrusmith, which looks like what I want but I don't know how to…

Jere
- 3
- 3
-2
votes
1 answer
How to find the name of current JTextField of a View in Java?
I have a view in Java where I am entering data in JTextfields. A thread is running in parallel that gets input from a keypad by using snippets of code written below. Now whenever I call
JTextField c = (JTextField)…

KulaDamian
- 154
- 2
- 14