Libraryless. Click here for Pure Java version (2904L/17K).
static <A> JComboBox<A> setComboBoxRenderer(JComboBox<A> cb, ListCellRenderer renderer) { if (cb != null) swing { cb.setRenderer(renderer); } ret cb; }
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
Snippet ID: | #1030798 |
Snippet name: | setComboBoxRenderer |
Eternal ID of this version: | #1030798/1 |
Text MD5: | 9f1a9370c51e2d71026a4de7fccf9fa0 |
Transpilation MD5: | b8470740e3c2ec467379d91908720453 |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-03-26 15:32:58 |
Source code size: | 158 bytes / 4 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 191 / 269 |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |