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

24
LINES

< > BotCompany Repo | #1001458 // showList

JavaX fragment (include)

1  
static JList showList(L<S> l) {
2  
  ret showList(l, autoFrameTitle());
3  
}
4  
  
5  
static JList showList(S title, L<S> l) {
6  
  ret showList(l, title);
7  
}
8  
9  
static JList showList(L<S> l, S title) {
10  
  ret showList(l, title, null);
11  
}
12  
13  
static JList showList(JList list, L<S> l) {
14  
  ret showList(l, autoFrameTitle(), list);
15  
}
16  
17  
static JList showList(L<S> l, S title, JList list) {
18  
  bool isNew = list == null;
19  
  if (isNew) list = jlist();
20  
  fillListWithStrings(list, l);
21  
  if (isNew)
22  
    showFrame(title, list);
23  
  return list;
24  
}

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: #1001458
Snippet name: showList
Eternal ID of this version: #1001458/4
Text MD5: 47cf81d46a08c96e39efad1943952346
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:32:45
Source code size: 533 bytes / 24 lines
Pitched / IR pitched: No / No
Views / Downloads: 592 / 799
Version history: 3 change(s)
Referenced in: [show references]