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

9
LINES

< > BotCompany Repo | #1034428 // getSelected - synonym of getSelectedItem_typed

JavaX fragment (include)

static <A> A getSelected(JList<A> l) {
  ret getSelectedItem_typed(l);
}



static <A> A getSelected(JComboBox<A> cb) {
  ret getSelectedItem_typed(cb);
}

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1034428
Snippet name: getSelected - synonym of getSelectedItem_typed
Eternal ID of this version: #1034428/1
Text MD5: 72a4786e1a8efcfa086dd83b5cbbb420
Author: stefan
Category:
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-02-07 18:29:09
Source code size: 156 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 166 / 174
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)