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

14
LINES

< > BotCompany Repo | #1008604 // customLayoutPanel - takes a function or LayoutManager

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Compilation Failed (10792L/61K).

// layouter: voidfunc(Container)
// or func(Container) -> Dimension [preferred size]
// or func(Container) -> Pair(Dimension, Dimension) [preferred, minimum]
static JPanel customLayoutPanel(fO layouter) {
  ret jpanel(layoutManagerFromFunction(layouter));
}

static JPanel customLayoutPanel(fO layouter, fL<? extends Component> components) {
  ret addAllComponents(customLayoutPanel(layouter), components);
}

static JPanel customLayoutPanel(LayoutManager layouter, Component... components) {
  ret addAllComponents(customLayoutPanel(layouter), components);
}

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: 556 / 686
Version history: 6 change(s)
Referenced in: [show references]