1 | static void selectedRowCountListButton_min_update(JList list, int min, JButton b, S text) { |
2 | int c = list.getSelectedIndices().length; |
3 | setEnabled(b, c >= min); |
4 | setText(b, c > 0 ? text + " (" + c + ")" : text); |
5 | } |
Began life as a copy of #1014369
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: | #1014371 |
Snippet name: | selectedRowCountListButton_min_update |
Eternal ID of this version: | #1014371/1 |
Text MD5: | c381fdc1107ec0570337759cb62c2f24 |
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:53:16 |
Source code size: | 220 bytes / 5 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 368 / 401 |
Referenced in: | [show references] |