actionPerformed() keeps track of :
x is 0
t.start is a start() method of object t of a constructor class thread T of class MyClass
x is postfix incremented to 1
if(x >= 2) is the break/interrupt routine for actionPerformed counter on x=2
t.interrupted() is the actual interrupt method for the object/thread t
it's what's going to display the error message after 2 actions, button presses
main.paint(i) is commented out and doesn't run in the code, if it did it would probably make use of the object main and method drawstring of the function paint that's probably inherited from one of the import graphics libraries from the beginning
You can find the .interrupted() method of MyClass in your previous post. Which is used for interrupting the thread t.
Try running it without the interrupt exception and explain what's not showing the way you expect it to show, I don't understand what you expect it to do.