static void convertToDefaultListModel(JList list) { ListModel model = list.getModel(); new DefaultListModel m; for (int i = 0; i < model.getSize(); i++) m.addElement(model.getElementAt(i)); list.setModel(m); }
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: | 614 / 838 |
Referenced in: | #1002427 - Accellerating 629 (SPIKE) #1006654 - Standard functions list 2 (LIVE, continuation of #761) #3000382 - Answer for ferdie (>> t = 1, f = 0) |