Libraryless. Click here for Pure Java version (5065L/28K).
static DocumentListener runnableToDocumentListener(Runnable r) { ret new DocumentListener { public void insertUpdate(DocumentEvent e) { pcallF(r); } public void removeUpdate(DocumentEvent e) { pcallF(r); } public void changedUpdate(DocumentEvent e) { pcallF(r); } }; }
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: | 157 / 221 |
Referenced in: | [show references] |