Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

14
LINES

< > BotCompany Repo | #1015725 // Rename Snippet Form [OK]

JavaX source code (desktop) [tags: use-pretranspiled] - run with: x30.jar

Download Jar. Uses 3874K of libraries. Click here for Pure Java version (8293L/57K).

!7

p-noconsole {
  final JTextField snippetID = snippetIDChooser();
  final JLabel title = jAutoSnippetTitle(snippetID);
  final JTextField newTitle = jtextfield();
  renameSubmitButton("Rename snippet",
    showForm(+snippetID, +title, +newTitle, disableButtonWhileCalcing(func -> bool {
      S s = renameSnippet(getText(snippetID), getTextTrim(newTitle));
      bool ok = swic(s, "OK");
      infoBox(ok ? "Renamed!" : "Error: " + s);
      ret ok;
    })));
}

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: #1015725
Snippet name: Rename Snippet Form [OK]
Eternal ID of this version: #1015725/11
Text MD5: a393a40e803c8b84c654942d1f63d179
Transpilation MD5: e8a2cb2fde04ea70ad569252ebf60ad1
Author: stefan
Category: javax
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-05-26 14:09:37
Source code size: 477 bytes / 14 lines
Pitched / IR pitched: No / No
Views / Downloads: 345 / 928
Version history: 10 change(s)
Referenced in: [show references]