1 | static JPanel hstack(O... parts) { |
2 | JPanel panel = new JPanel(new GridBagLayout); |
3 | new GridBagConstraints gbc; |
4 | gbc.weighty = 1; |
5 | gbc.fill = GridBagConstraints.VERTICAL; |
6 | gbc.gridheight = GridBagConstraints.REMAINDER; |
7 | smartAddWithLayout(panel, gbc, parts); |
8 | gbc.weightx = 1; |
9 | panel.add(jrigid(), gbc); |
10 | ret panel; |
11 | } |
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: | 559 / 569 |
Version history: | 2 change(s) |
Referenced in: | [show references] |