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; }); }
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: | 518 / 553 |
Version history: | 2 change(s) |
Referenced in: | #1006626 - vstackWithSpacing - stack components vertically #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1007328 - hstack function (layout components left to right, try to fill full height, dev.) |