Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

9
LINES

< > BotCompany Repo | #1020435 // onTableSelectionChanged - executes in AWT thread

JavaX fragment (include)

svoid onTableSelectionChanged(final JTable table, final Runnable r) {
  swing {
    table.getSelectionModel().addListSelectionListener(new ListSelectionListener {
      public void valueChanged(ListSelectionEvent e) {
        callF(r);
      }
    });
  }
}

Author comment

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: 370 / 412
Version history: 1 change(s)
Referenced in: [show references]