change to wrap the drawing panel with JScrollPane