restart a swing interface