System.Tag.Toggle?

Yes, you'll want to use invokeLater--not sleep--for the second write, as in this example:

1 Like