Hi. Sorry, my english is bad (is very ...telegraphic), I speak spanish.

I have a JTable with custom editors (JPanel with a JTextField inside). This
JTable is inside a JInternalFrame (MDI application). I set a input verifier
to the JTextField, its show a error dialog (is a JOptionPane, I use the
workaround for the #4532517), but when press "Ok" in the error dialog, the
focus goes to the JToolBar of the main JFrame (???), not to the JTextField.

PD: I try with textfield.requestFocus() in the shouldYieldFocus(), but this
not work. Searching, I find this article:
http://www.javaworld.com/javaworld/jw-06-2001/jw-0622-traps_p.html
but the propose solution (call the requestFocus() in
SwingUtilities.invokeLater()) doesnt work for me (the call to requestFocus()
and requestFocusInWindows() return false; textfield.isFocusable() return
true, but textfield.isDisplayable() return false! Some idea?)

Thanks in advanced.


_______________________________________________
Advanced-swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/advanced-swing

Reply via email to