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

21
LINES

< > BotCompany Repo | #1015578 // Show Suggestion Spike

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

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

!7

p-noconsole {
  showSuggestion("Run program #123 - bla bla blubb blubb?", r {
    infoBox("Yo")
  });
}

// runs action in new thread
svoid showSuggestion(S suggestionText, fO action) {
  int fontSize = 20, buttonFontSize = 15;
  showPackedFrameInBottomRightCorner(
    withLineBorder(Color.black, withMargin(
      centerAndSouth(
        fontSize(fontSize, jCenteredMultiLineLabel(suggestionText)),
        withTopMargin(makeFirstButtonBold(fontSizeAll(buttonFontSize, jcenteredbuttons(
          "OK", r {
            disposeWindow();
            callFInNewThread(action);
          }, "No", f disposeWindow))))))));
}

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: #1015578
Snippet name: Show Suggestion Spike
Eternal ID of this version: #1015578/15
Text MD5: 0d775eac914dcbf9546a14177bfdff67
Transpilation MD5: 72cbc0d5a485dfa936f5120d2c48321d
Author: stefan
Category: javax / gui
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-05-27 00:43:17
Source code size: 645 bytes / 21 lines
Pitched / IR pitched: No / No
Views / Downloads: 526 / 1473
Version history: 14 change(s)
Referenced in: [show references]