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)

1  
static JButton selectedRowCountListButton_min(final JList list, final int min, final JButton b) {
2  
  fS text = getText(b);
3  
  list.getSelectionModel().addListSelectionListener(new ListSelectionListener {
4  
    public void valueChanged(ListSelectionEvent e) {
5  
      selectedRowCountListButton_min_update(list, min, b, text);
6  
    }
7  
  });
8  
  selectedRowCountListButton_min_update(list, min, b, text);
9  
  ret b;
10  
}

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: 272 / 308
Referenced in: [show references]