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

11
LINES

< > BotCompany Repo | #1007328 // hstack function (layout components left to right, try to fill full height, dev.)

JavaX fragment (include)

static JPanel hstack(O... parts) {
  JPanel panel = new JPanel(new GridBagLayout);
  new GridBagConstraints gbc;
  gbc.weighty = 1;
  gbc.fill = GridBagConstraints.VERTICAL;
  gbc.gridheight = GridBagConstraints.REMAINDER;
  smartAddWithLayout(panel, gbc, parts);
  gbc.weightx = 1;
  panel.add(jrigid(), gbc);
  ret panel;
}

Author comment

Began life as a copy of #1006475

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1007328
Snippet name: hstack function (layout components left to right, try to fill full height, dev.)
Eternal ID of this version: #1007328/3
Text MD5: ab6b0cab726d62d88bb40d0f9b3e2d81
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-05-06 17:23:06
Source code size: 335 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 481 / 488
Version history: 2 change(s)
Referenced in: [show references]