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

6
LINES

< > BotCompany Repo | #1026643 // jLabelWithButtons

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (4218L/28K).

// _ = text, runnable, text, runnable, ...
// use e.g. maxToShow := 2 to hide all but 2 buttons in a pop-down menu
static JPanel jLabelWithButtons(S text, O... _) {
  optPar int maxToShow = 1000;
  ret centerAndEastWithMargin(jLabel(text), jcenteredbuttons_withPopDown(maxToShow, paramsWithout(_, 'maxToShow)));
}

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1026643
Snippet name: jLabelWithButtons
Eternal ID of this version: #1026643/6
Text MD5: 4a9eab9eda1851e7894262fbf8bee157
Transpilation MD5: 406d6df0485659f960e844f07e52b93c
Author: stefan
Category: javax / discord
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-01-18 16:49:37
Source code size: 318 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 207 / 323
Version history: 5 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1028901 - jLabelWithButtonsAndSideMargin