Uses 3874K of libraries. Click here for Pure Java version (6626L/48K/159K).
!7 sS alarmProgram = #1001096; p-substance { final JTextField tfHours = jTextField(hours()); final JTextField tfMinutes = jTextField(minutes()); showControls(jCenteredLine(jbutton("Test alarm", f testRing))); showForm("Hours", tfHours, "Minutes", tfMinutes, r-thread { int hours = parseInt(getTextTrim(tfHours)); int minutes = parseInt(getTextTrim(tfMinutes)); O prog = hotwire(alarmProgram); print("Alarm set to " + hours + ":" + minutes + "! (Current time: " + hours() + ":" + minutes() + ")"); waitUntilClockTime(hours, minutes); callMain(prog); }); } svoid testRing { nohupJavax(alarmProgram); // run with nohup so it is closable by user }
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: | 787 / 1000 |
| Version history: | 7 change(s) |
| Referenced in: | [show references] |