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

10
LINES

< > BotCompany Repo | #1019405 // buttonsAsfillerlessHStack

JavaX fragment (include)

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

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: 282 / 332
Referenced in: [show references]