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

7
LINES

< > BotCompany Repo | #1001660 // convertToDefaultListModel

JavaX fragment (include)

1  
  static void convertToDefaultListModel(JList list) {
2  
    ListModel model = list.getModel();
3  
    new DefaultListModel m;
4  
    for (int i = 0; i < model.getSize(); i++)
5  
      m.addElement(model.getElementAt(i));
6  
    list.setModel(m);
7  
  }

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: #1001660
Snippet name: convertToDefaultListModel
Eternal ID of this version: #1001660/1
Text MD5: 6a65910bb0aee4d601424768b577d2bf
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2015-11-01 13:39:00
Source code size: 241 bytes / 7 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 615 / 840
Referenced in: [show references]