gui update in a swing thread in main