Passing JPanels with graphs to law view instead of data