!7 lib 1012119 import jexer.*; sclass MyApplication extends TApplication { *() throws UnsupportedEncodingException { super(BackendType.SWING); // Could also use BackendType.XTERM // Create standard menus for File and Window addFileMenu(); addWindowMenu(); new MyWindow(this); } } sclass MyWindow extends TWindow { *(TApplication application) { super(application, "My Window", 30, 20); addLabel("This is a label", 5, 3); addField(5, 5, 20, false, "enter text here"); addButton("Press &Me!", 5, 8, new TAction() { public void DO() { MyWindow.this.messageBox("Box Title", "You pressed me, yay!"); } }); } } p { startThread(new MyApplication); }