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

10
LINES

< > BotCompany Repo | #1019723 // leftAlignedButtons

JavaX fragment (include)

static JPanel leftAlignedButtons(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 jline(l);
}

Author comment

Began life as a copy of #1010175

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1019723
Snippet name: leftAlignedButtons
Eternal ID of this version: #1019723/1
Text MD5: 201caeb4c950d479bd8bfce42f28e922
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-11-24 00:46:35
Source code size: 312 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 273 / 311
Referenced in: [show references]