add graph show using swing.