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

9
LINES

< > BotCompany Repo | #1020435 - onTableSelectionChanged

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   

Travelled to 5 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, mqqgnosmbjvj, tvejysmllsmz

No comments. add comment

Snippet ID: #1020435
Snippet name: onTableSelectionChanged
Eternal ID of this version: #1020435/1
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: 2018-12-21 17:47:59
Source code size: 265 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 83 / 93
Referenced in: [show references]

Formerly at http://tinybrain.de/1020435 & http://1020435.tinybrain.de