1 | static int setSplitPaneDelayed_delay = 100; |
2 | |
3 | // value = 0 to 1 |
4 | static JSplitPane setSplitPaneDelayed(final Component c, final double value) {
|
5 | final JSplitPane sp = first(childrenOfType(c, JSplitPane.class)); |
6 | if (sp != null) |
7 | awtLater(setSplitPaneDelayed_delay, r { sp.setDividerLocation(value) });
|
8 | ret sp; |
9 | } |
10 | |
11 | static JSplitPane setSplitPaneDelayed(double value, Component c) {
|
12 | ret setSplitPaneDelayed(c, value); |
13 | } |
Began life as a copy of #1007235
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: | #1014704 |
| Snippet name: | setSplitPaneDelayed - set split location of outer-most JSplitPane after short delay |
| Eternal ID of this version: | #1014704/4 |
| Text MD5: | 2a33b70f564316fbc39b966b440d0cb7 |
| Author: | stefan |
| Category: | javax / gui |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-04-30 17:54:04 |
| Source code size: | 435 bytes / 13 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 669 / 732 |
| Version history: | 3 change(s) |
| Referenced in: | [show references] |