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

7
LINES

< > BotCompany Repo | #1006638 // setSplitPane - set split location of outer-most JSplitPane

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

Libraryless. Click here for Pure Java version (9917L/55K).

// value = 0 to 1
static JSplitPane setSplitPane(Component c, double value) swing {
  JSplitPane sp = first(childrenOfType(c, JSplitPane.class));
  if (sp != null)
    sp.setDividerLocation(value);
  ret sp;
}

Author comment

Began life as a copy of #1006620

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: #1006638
Snippet name: setSplitPane - set split location of outer-most JSplitPane
Eternal ID of this version: #1006638/2
Text MD5: 19bf0b3517b3373f218e63e2012c01c7
Transpilation MD5: 99f376852a800b1c15a4160725f8d8a4
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-11-30 18:24:50
Source code size: 215 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 438 / 510
Version history: 1 change(s)
Referenced in: [show references]