posted 18 years ago
Hi,
1) use Component.getFocusOwner() (JFrame.getFocusOwner())
* Returns the child Component of this Window that has focus if this Window
* is focused; returns null otherwise.
As result you will have your focused JTextField. And then you can
2) use JTextField.getParent()
Best Regards,
KArol Muszynski