Download Jar. Libraryless. Click here for Pure Java version (8183L/59K/217K).
1 | !7 |
2 | |
3 | set flag standardTitlePopupMenu_noProgramFunctions. |
4 | svoid restart() {} // help out transpiler who should honor ifndefs better |
5 | svoid duplicateThisProgram() {} |
6 | |
7 | static void go(final BufferedImage img, S title) { |
8 | final JTextField tf = jTextField(title); |
9 | showFormTitled("Upload Image (JPEG)", |
10 | "Image title (optional)", tf, func { |
11 | disableSubmitButton(getFrame(tf)); |
12 | thread "Upload Image" { |
13 | try { |
14 | messageBox("Image uploaded as " + uploadJPEGToImageServer(img, getTextTrim(tf))); |
15 | disposeFrame(tf); |
16 | } catch e { |
17 | enableSubmitButton(getFrame(tf)); |
18 | messageBox(e); |
19 | } |
20 | } |
21 | false; |
22 | }); |
23 | } |
Began life as a copy of #1007313
download show line numbers debug dex old transpilations
Travelled to 16 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, hpgrupgrauku, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1016427 |
Snippet name: | Upload Image To Image Server [hotwirable module] |
Eternal ID of this version: | #1016427/3 |
Text MD5: | da2385ded656b58cf4081fd87af9aead |
Transpilation MD5: | ce449897cb411d9f6c58838008d7e0a4 |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX module |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-09-01 16:47:29 |
Source code size: | 694 bytes / 23 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 577 / 2931 |
Version history: | 2 change(s) |
Referenced in: | [show references] |