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

10
LINES

< > BotCompany Repo | #1019405 // buttonsAsfillerlessHStack

JavaX fragment (include)

static JComponent buttonsAsfillerlessHStack(O... params) {
  new L<JComponent> l;
  for (int i = 0; i < l(params); i += 2)
    if (params[i] != null)
      if (params[i] instanceof JComponent)
        l.add((JComponent) params[i--]);
      else
        l.add(jbutton((S) params[i], params[i+1]));
  ret dynamicHStack_noFiller(l);
}

Author comment

Began life as a copy of #1010175

download  show line numbers  debug dex  old transpilations   

Travelled to 12 computer(s): bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1019405
Snippet name: buttonsAsfillerlessHStack
Eternal ID of this version: #1019405/1
Text MD5: a7837cc2e48f129a678a78cf40969ac5
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-11-05 00:35:31
Source code size: 340 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 281 / 330
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1019411 - buttonsAsfillerlessHStack_noSpacing (filler is the invisible use-all-space component at the end)