added jframe magic