static void clearJList(final JList list) { if (list != null) swing { ((DefaultListModel) list.getModel()).clear(); } }
Began life as a copy of #1015284
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1021817 |
Snippet name: | clearJList - assumes DefaultListModel |
Eternal ID of this version: | #1021817/1 |
Text MD5: | 9e84d9c28dce7d98cb411d86f337c901 |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-02-28 12:58:20 |
Source code size: | 130 bytes / 5 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 260 / 297 |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |