create the window that you say, for example one that contains amessage named MyMessage.inside your main applet class,public void foo(){MyMessage mm = new MyMessage();}