Uses 3874K of libraries. Click here for Pure Java version (6626L/48K/159K).
1 | !7 |
2 | |
3 | sS alarmProgram = #1001096; |
4 | |
5 | p-substance { |
6 | final JTextField tfHours = jTextField(hours()); |
7 | final JTextField tfMinutes = jTextField(minutes()); |
8 | showControls(jCenteredLine(jbutton("Test alarm", f testRing))); |
9 | |
10 | showForm("Hours", tfHours, "Minutes", tfMinutes, r-thread { |
11 | int hours = parseInt(getTextTrim(tfHours)); |
12 | int minutes = parseInt(getTextTrim(tfMinutes)); |
13 | O prog = hotwire(alarmProgram); |
14 | print("Alarm set to " + hours + ":" + minutes + "! (Current time: " + hours() + ":" + minutes() + ")"); |
15 | waitUntilClockTime(hours, minutes); |
16 | callMain(prog); |
17 | }); |
18 | } |
19 | |
20 | svoid testRing { |
21 | nohupJavax(alarmProgram); // run with nohup so it is closable by user |
22 | } |
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1006916 |
Snippet name: | Alarm Program - play music at clock time [WORKS] |
Eternal ID of this version: | #1006916/8 |
Text MD5: | f2cc94bef7aee5b15a17d96725b6621b |
Transpilation MD5: | 38c7aff260c3bd2a4e075cb6c4751d68 |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-02-16 03:45:43 |
Source code size: | 706 bytes / 22 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 542 / 707 |
Version history: | 7 change(s) |
Referenced in: | [show references] |