Download Jar. Uses 615K of libraries. Click here for Pure Java version (1435L/10K).
1 | !7 |
2 | |
3 | lib 1012119 |
4 | |
5 | import jexer.*; |
6 | |
7 | sclass MyApplication extends TApplication { |
8 | *() throws UnsupportedEncodingException { |
9 | super(BackendType.SWING); // Could also use BackendType.XTERM |
10 | |
11 | // Create standard menus for File and Window |
12 | addFileMenu(); |
13 | addWindowMenu(); |
14 | new MyWindow(this); |
15 | } |
16 | } |
17 | |
18 | sclass MyWindow extends TWindow { |
19 | *(TApplication application) { |
20 | super(application, "My Window", 30, 20); |
21 | |
22 | addLabel("This is a label", 5, 3); |
23 | addField(5, 5, 20, false, "enter text here"); |
24 | addButton("Press &Me!", 5, 8, new TAction() { |
25 | public void DO() { |
26 | MyWindow.this.messageBox("Box Title", "You pressed me, yay!"); |
27 | } |
28 | }); |
29 | } |
30 | } |
31 | |
32 | p { |
33 | startThread(new MyApplication); |
34 | } |
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: | 578 / 1170 |
Version history: | 6 change(s) |
Referenced in: | [show references] |