Clean up swing code.