Convert Visualizer to a swing object