I have a JDialog with a series of JTextFields on it I would like the text each to be selected when I tab to it.
+1
A:
This exact question has been asked and answered, check it out here.
Short version: Add a focus listener to your text components and select all on focus, using SwingUtilities.invokeLater to ensure all pending AWT events have been processed.
thedude19
2009-08-21 14:56:05
I did do a search first but didn't find that, thanks for pointing it out.
Lewis Jubb
2009-08-21 15:05:28
No problem, glad to help.
thedude19
2009-08-21 15:27:39