update swing