1 | svoid trimHStackFromLeft(final DynamicHStack stack, final int n) { |
2 | swing { |
3 | L<Component> l = stack.components(); |
4 | l = takeFirst(l(l)-n, l); |
5 | for (Component c : l) |
6 | stack.remove(c); |
7 | if (nempty(l)) stack.revalidate(); |
8 | } |
9 | } |
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: | #1015159 |
Snippet name: | trimHStackFromLeft |
Eternal ID of this version: | #1015159/1 |
Text MD5: | e79ae2e4e51d2135124786eebf9d9e9a |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-05-10 13:00:02 |
Source code size: | 249 bytes / 9 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 362 / 406 |
Referenced in: | [show references] |