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

10
LINES

< > BotCompany Repo | #1014370 // selectedRowCountListButton_min - adds selected row count to button text, requires minimum number of selected lines to enable

JavaX fragment (include)

static JButton selectedRowCountListButton_min(final JList list, final int min, final JButton b) {
  fS text = getText(b);
  list.getSelectionModel().addListSelectionListener(new ListSelectionListener {
    public void valueChanged(ListSelectionEvent e) {
      selectedRowCountListButton_min_update(list, min, b, text);
    }
  });
  selectedRowCountListButton_min_update(list, min, b, text);
  ret b;
}

Author comment

Began life as a copy of #1014368

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1014370
Snippet name: selectedRowCountListButton_min - adds selected row count to button text, requires minimum number of selected lines to enable
Eternal ID of this version: #1014370/1
Text MD5: 81f220830873bc2b102e949e792fad8c
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-04-20 16:52:56
Source code size: 412 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 269 / 304
Referenced in: [show references]