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

10
LINES

< > BotCompany Repo | #1019411 // buttonsAsfillerlessHStack_noSpacing (filler is the invisible use-all-space component at the end)

JavaX fragment (include)

static JComponent buttonsAsfillerlessHStack_noSpacing(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_noSpacing(l);
}

Author comment

Began life as a copy of #1019405

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: #1019411
Snippet name: buttonsAsfillerlessHStack_noSpacing (filler is the invisible use-all-space component at the end)
Eternal ID of this version: #1019411/1
Text MD5: 33ee7a4390442789a0774c958ecf0459
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-11-06 16:36:42
Source code size: 360 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 225 / 257
Referenced in: [show references]