Libraryless. Click here for Pure Java version (10759L/60K).
1 | svoid onTableSelectionChangedAndNow(final JTable table, final Runnable r) {
|
2 | swing {
|
3 | table.getSelectionModel().addListSelectionListener(new ListSelectionListener {
|
4 | public void valueChanged(ListSelectionEvent e) {
|
5 | // swingLater helps us avoid spurios selection changes during table updates |
6 | swingLater(r); |
7 | } |
8 | }); |
9 | callF(r); |
10 | } |
11 | } |
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: | 618 / 731 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |