The moose likes Swing / AWT / SWT and the fly likes Multiple Flashing carets Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Multiple Flashing carets" Watch "Multiple Flashing carets" New topic

Multiple Flashing carets

Angela Narain
Ranch Hand

Joined: Apr 14, 2001
Posts: 327
I am having a panel in which there are two textfields.
Now on focus lost of the first textField , i open for a
JDialog box , within which i have one button clicking
on which another JDialog box opens.
Closing the last opened JDialog i come to the first JDialog opened,
which when closed returns me back to the first panel with
the textFields.
Now here comes the problem,, when it returns back i get two
focus/flashing carets , one of the next immediate editable textField and other on the first one.
Does anyone have an idea how i can solve this ?
Any kind of help would be appreciated.
Chantal Ackermann
Ranch Hand

Joined: Sep 28, 2000
Posts: 508
hi Angela,
that sounds like a bug in your program. are you using JOptionPane to open the dialogs?
I agree. Here's the link:
subject: Multiple Flashing carets
It's not a secret anymore!