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

15
LINES

< > BotCompany Repo | #1006475 // vstack2 function (layout components top to bottom, try to fill full width)

JavaX fragment (include)

static JPanel vstack2(fO... parts) {
  ret swing(func -> JPanel {
    JPanel panel = new JPanel(new GridBagLayout);
    new GridBagConstraints gbc;
    gbc.weightx = 1;
    gbc.fill = GridBagConstraints.HORIZONTAL;
    gbc.gridwidth = GridBagConstraints.REMAINDER;
    smartAddWithLayout(panel, gbc, parts);
    //gbc = (GridBagConstraints) gbc.clone();
    //gbc.fill = GridBagConstraints.BOTH;
    gbc.weighty = 1;
    panel.add(jrigid(), gbc);
    ret panel;
  });
}

Author comment

Began life as a copy of #1001761

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1006475
Snippet name: vstack2 function (layout components top to bottom, try to fill full width)
Eternal ID of this version: #1006475/3
Text MD5: 1a3ca90d2cb08648b58d51676eca3218
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:22:19
Source code size: 483 bytes / 15 lines
Pitched / IR pitched: No / No
Views / Downloads: 442 / 475
Version history: 2 change(s)
Referenced in: [show references]