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

15
LINES

< > BotCompany Repo | #1008716 // autoComboBox

JavaX fragment (include)

1  
static AutoComboBox autoComboBox() {
2  
  ret autoComboBox(new L);
3  
}
4  
5  
static AutoComboBox autoComboBox(final Collection<S> items) {
6  
  ret swing(func -> AutoComboBox {
7  
    new AutoComboBox cb;
8  
    cb.setKeyWord(items);
9  
    ret cb;
10  
  });
11  
}
12  
13  
static AutoComboBox autoComboBox(S value, Collection<S> items) {
14  
  ret setText(autoComboBox(items), value);
15  
}

Author comment

Began life as a copy of #1007534

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: #1008716
Snippet name: autoComboBox
Eternal ID of this version: #1008716/6
Text MD5: b64d25238d144c2ab301b818a46f2e35
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-09-19 19:10:05
Source code size: 359 bytes / 15 lines
Pitched / IR pitched: No / No
Views / Downloads: 505 / 579
Version history: 5 change(s)
Referenced in: [show references]