Download Jar. Uses 615K of libraries. Click here for Pure Java version (1435L/10K).
!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); }
Began life as a copy of #1011955
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1011956 |
Snippet name: | Jexer Window Test (Swing only, window close problem fixed - freezes on exit out of OS Shell?) |
Eternal ID of this version: | #1011956/7 |
Text MD5: | 3f52882168f65d1527b1c44203da363b |
Transpilation MD5: | eb9d1a8f8062af77cc022bd3508f733b |
Author: | stefan |
Category: | |
Type: | JavaX source code (desktop) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-06-24 04:36:40 |
Source code size: | 751 bytes / 34 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 576 / 1164 |
Version history: | 6 change(s) |
Referenced in: | [show references] |