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

3
LINES

< > BotCompany Repo | #1022680 // listRowCount - same as jlistSize

JavaX fragment (include)

static int listRowCount(JList list) {
  ret list == null ? 0 : swing(func -> int { list.getModel().getSize() });
}

Author comment

Began life as a copy of #1003907

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1022680
Snippet name: listRowCount - same as jlistSize
Eternal ID of this version: #1022680/4
Text MD5: a5adc15e5813028b8245187d4430f468
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-03-31 16:53:56
Source code size: 116 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 321 / 352
Version history: 3 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)