1 | static DefaultMutableTreeNode jDynamicTree_findNode(final JTree tree, fO data) { |
2 | ret swing(func -> DefaultMutableTreeNode { |
3 | Enumeration e = ((DefaultMutableTreeNode) tree.getModel().getRoot()).breadthFirstEnumeration(); |
4 | while (e.hasMoreElements()) { |
5 | DefaultMutableTreeNode n = cast e.nextElement(); |
6 | if (eq(n.getUserObject(), data)) ret n; |
7 | } |
8 | null; |
9 | }); |
10 | } |
Began life as a copy of #1016827
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1016831 |
Snippet name: | jDynamicTree_findNode |
Eternal ID of this version: | #1016831/3 |
Text MD5: | 4bc21c43ad859ac35bb1ef7de341c0fe |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-07-03 16:37:23 |
Source code size: | 393 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 392 / 431 |
Version history: | 2 change(s) |
Referenced in: | [show references] |