svoid onTableSelectionChanged(final JTable table, final Runnable r) { swing { table.getSelectionModel().addListSelectionListener(new ListSelectionListener { public void valueChanged(ListSelectionEvent e) { callF(r); } }); } }
Began life as a copy of #1016596
download show line numbers debug dex old transpilations
Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1020435 |
| Snippet name: | onTableSelectionChanged - executes in AWT thread |
| Eternal ID of this version: | #1020435/2 |
| Text MD5: | 604b3c188d6ab3e134ad0fbd2f22a3bf |
| Author: | stefan |
| Category: | javax / gui |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2022-08-20 18:14:06 |
| Source code size: | 265 bytes / 9 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 637 / 691 |
| Version history: | 1 change(s) |
| Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |