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

10
LINES

< > BotCompany Repo | #1014368 // selectedRowCountListButton - adds selected row count to button text

JavaX fragment (include)

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

Author comment

Began life as a copy of #1014251

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: #1014368
Snippet name: selectedRowCountListButton - adds selected row count to button text
Eternal ID of this version: #1014368/2
Text MD5: 0432d82fe4fe05ea754af40faf77540c
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:51:21
Source code size: 375 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 315 / 350
Version history: 1 change(s)
Referenced in: [show references]