posted 21 years ago
You can't set XOR mode on the text component... but you could probably do something like...
That would make the foreground color the exact opposite of what it was...
or... you could do something like :
which would swap foreground and background colors...
Just call this code from both the methods of FocusListener, and add the FocusListener to the component you want... then whenever it is selected it will show opposite colors...
-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.