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

7
LINES

< > BotCompany Repo | #1030793 // jTypedComboBox

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

Libraryless. Click here for Pure Java version (2999L/18K).

1  
static <A> JComboBox<A> jTypedComboBox(Cl<A> items) {
2  
  ret swing(() -> new JComboBox<A>(toVector(items)));
3  
}
4  
5  
static <A> JComboBox<A> jTypedComboBox(Cl<A> items, A selectedItem) {
6  
  ret selectItem(selectedItem, jTypedComboBox(items));
7  
}

Author comment

Began life as a copy of #1005084

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt

No comments. add comment

Snippet ID: #1030793
Snippet name: jTypedComboBox
Eternal ID of this version: #1030793/2
Text MD5: 425c5404cc47fa1f0a70037096ad7b6b
Transpilation MD5: dbcfdd1d100bf7dcb09a8a961e79cba7
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:10:56
Source code size: 243 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 232 / 337
Version history: 1 change(s)
Referenced in: [show references]