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

10
LINES

< > TinyBrain | #1021495 - onTreeSelectionChanged

JavaX fragment (include)

svoid onTreeSelectionChanged(final JTree tree, final Runnable r) {
  if (tree != null && r != null) swing {
    tree.addTreeSelectionListener(new TreeSelectionListener {
      public void valueChanged(TreeSelectionEvent e) {
        pcallF(r);
      }
    });
  }
}
    

download  show line numbers  debug dex   

Travelled to 3 computer(s): cfunsshuasjs, mqqgnosmbjvj, tvejysmllsmz

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 / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 17 / 23
Version history: 1 change(s)
Referenced in: [show references]