Added JFrame to panel constructor