var f = new java.awt.Frame("Hello World"); var ta = new java.awt.TextArea("hello, world", 5, 20); f.add("Center", ta); f.pack(); f.show();