Libraryless. Click here for Pure Java version (5065L/28K).
1 | static DocumentListener runnableToDocumentListener(Runnable r) { |
2 | ret new DocumentListener { |
3 | public void insertUpdate(DocumentEvent e) { |
4 | pcallF(r); |
5 | } |
6 | public void removeUpdate(DocumentEvent e) { |
7 | pcallF(r); |
8 | } |
9 | public void changedUpdate(DocumentEvent e) { |
10 | pcallF(r); |
11 | } |
12 | }; |
13 | } |
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1034987 |
Snippet name: | runnableToDocumentListener |
Eternal ID of this version: | #1034987/1 |
Text MD5: | a264c2369ff01e4be76990390a2517df |
Transpilation MD5: | 450bb1fe30579a21db94beb62a28bb3a |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-03-21 13:33:05 |
Source code size: | 326 bytes / 13 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 160 / 225 |
Referenced in: | [show references] |