Added JOptionPane Graph

For some reason the JOptionPane was lost so I rewrote it.