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

4
LINES

< > BotCompany Repo | #1030798 // setComboBoxRenderer

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (2904L/17K).

1  
static <A> JComboBox<A> setComboBoxRenderer(JComboBox<A> cb, ListCellRenderer renderer) {
2  
  if (cb != null) swing { cb.setRenderer(renderer); }
3  
  ret cb;
4  
}

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: 192 / 271
Referenced in: [show references]