1 | svoid onTableSelectionChanged(final JTable table, final Runnable r) {
|
2 | swing {
|
3 | table.getSelectionModel().addListSelectionListener(new ListSelectionListener {
|
4 | public void valueChanged(ListSelectionEvent e) {
|
5 | callF(r); |
6 | } |
7 | }); |
8 | } |
9 | } |
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: | 638 / 692 |
| Version history: | 1 change(s) |
| Referenced in: | [show references] |