Libraryless. Compilation Failed (10792L/61K).
1 | // layouter: voidfunc(Container) |
2 | // or func(Container) -> Dimension [preferred size] |
3 | // or func(Container) -> Pair(Dimension, Dimension) [preferred, minimum] |
4 | static JPanel customLayoutPanel(fO layouter) {
|
5 | ret jpanel(layoutManagerFromFunction(layouter)); |
6 | } |
7 | |
8 | static JPanel customLayoutPanel(fO layouter, fL<? extends Component> components) {
|
9 | ret addAllComponents(customLayoutPanel(layouter), components); |
10 | } |
11 | |
12 | static JPanel customLayoutPanel(LayoutManager layouter, Component... components) {
|
13 | ret addAllComponents(customLayoutPanel(layouter), components); |
14 | } |
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: | #1008604 |
| Snippet name: | customLayoutPanel - takes a function or LayoutManager |
| Eternal ID of this version: | #1008604/7 |
| Text MD5: | 2e5bd04f4c390117f662774b15e687ea |
| Transpilation MD5: | 0a3baacf6769a3ddebd561f7ae583b63 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2022-09-07 05:51:50 |
| Source code size: | 572 bytes / 14 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 808 / 1011 |
| Version history: | 6 change(s) |
| Referenced in: | [show references] |