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

9
LINES

< > BotCompany Repo | #1020160 // comboBoxItemsAre

JavaX fragment (include)

1  
sbool comboBoxItemsAre(JComboBox cb, L l) {
2  
  ret cb != null && swing(func -> bool {
3  
    ComboBoxModel model = cb.getModel();
4  
    if (model.getSize() != l(l)) false;
5  
    for i over l:
6  
      if (neq(model.getElementAt(i), l.get(i))) false;
7  
    true;
8  
  });
9  
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1020160
Snippet name: comboBoxItemsAre
Eternal ID of this version: #1020160/1
Text MD5: 1705eca29f855bb1ff74db1fdd8ff2e2
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-12-09 18:19:17
Source code size: 264 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 349 / 375
Referenced in: [show references]