Libraryless. Click here for Pure Java version (10759L/60K).
svoid onTableSelectionChangedAndNow(final JTable table, final Runnable r) { swing { table.getSelectionModel().addListSelectionListener(new ListSelectionListener { public void valueChanged(ListSelectionEvent e) { // swingLater helps us avoid spurios selection changes during table updates swingLater(r); } }); callF(r); } }
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1016596 |
| Snippet name: | onTableSelectionChangedAndNow |
| Eternal ID of this version: | #1016596/3 |
| Text MD5: | 5f64ea3dd6e247cafe4f1d3fb381ae58 |
| Transpilation MD5: | 42baf533800f857ef0b22a8695981f04 |
| Author: | stefan |
| Category: | javax / gui |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2023-04-05 17:13:39 |
| Source code size: | 376 bytes / 11 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 619 / 732 |
| Version history: | 2 change(s) |
| Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1020435 - onTableSelectionChanged - executes in AWT thread |