Everything Swing related is done on the EDT, or Event Dispatching Thread. Painting, event handling, gui updating, etc. This keeps things organized, as making changes to the GUI from multiple Threads...