Forums Register Login

static method getFocusedComponent() of JTextComponent

+Pie Number of slices to send: Send
Hi all
How do I use the static method getFocusedComponent() of JTextComponent. I am using JBuilder 6.0.
I am using the class DefaultFocusManager() and I am trying to used the static method getFocusedComponent() of JTextComponent to get the component the currently has the focus.
What is another way to get the component that has the focus currently?
Thank you very much
+Pie Number of slices to send: Send
I am not sure whether this is what you are looking for:
KeyboardFocusManager.getCurrentKeyboardFocusManager().getFocusOwner()
Howard
Come have lunch with me Arthur. Adventure will follow. This tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 731 times.
Similar Threads
Focus Lost throws error
problem with the chat window
Where is a focus?
How to send a mouse event to a component where cursor is?
Cut,copy and paste
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 10:44:26.