1 | svoid onTreeSelectionChanged(final JTree tree, final Runnable r) { |
2 | if (tree != null && r != null) swing { |
3 | tree.addTreeSelectionListener(new TreeSelectionListener { |
4 | public void valueChanged(TreeSelectionEvent e) { |
5 | pcallF(r); |
6 | } |
7 | }); |
8 | } |
9 | } |
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1021495 |
Snippet name: | onTreeSelectionChanged |
Eternal ID of this version: | #1021495/2 |
Text MD5: | a39488900fae92b3918624cd3192f601 |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-02-15 05:21:49 |
Source code size: | 279 bytes / 9 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 341 / 357 |
Version history: | 1 change(s) |
Referenced in: | [show references] |