1 | static JPanel vstack2(fO... parts) { |
2 | ret swing(func -> JPanel { |
3 | JPanel panel = new JPanel(new GridBagLayout); |
4 | new GridBagConstraints gbc; |
5 | gbc.weightx = 1; |
6 | gbc.fill = GridBagConstraints.HORIZONTAL; |
7 | gbc.gridwidth = GridBagConstraints.REMAINDER; |
8 | smartAddWithLayout(panel, gbc, parts); |
9 | //gbc = (GridBagConstraints) gbc.clone(); |
10 | //gbc.fill = GridBagConstraints.BOTH; |
11 | gbc.weighty = 1; |
12 | panel.add(jrigid(), gbc); |
13 | ret panel; |
14 | }); |
15 | } |
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: | 519 / 555 |
Version history: | 2 change(s) |
Referenced in: | [show references] |