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

5
LINES

< > BotCompany Repo | #1014250 // selectedRowCountTableButton_update

JavaX fragment (include)

static void selectedRowCountTableButton_update(JTable table, JButton b, S text) {
  int c = table.getSelectedRowCount();
  setEnabled(b, c > 0);
  setText(b, c > 0 ? text + " (" + c + ")" : text);
}

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: #1014250
Snippet name: selectedRowCountTableButton_update
Eternal ID of this version: #1014250/2
Text MD5: 0cf9b865a94b1ba63fb862256dcef8f8
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-04-17 16:42:23
Source code size: 202 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 430 / 462
Version history: 1 change(s)
Referenced in: [show references]