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

8
LINES

< > BotCompany Repo | #1017890 // comboBoxSelectIndex

JavaX fragment (include)

1  
static JComboBox comboBoxSelectIndex(final int idx, final JComboBox cb) {
2  
  if (cb != null) swing { pcall-short { cb.setSelectedIndex(idx); } }
3  
  ret cb;
4  
}
5  
6  
static JComboBox comboBoxSelectIndex(final JComboBox cb, int idx) {
7  
  ret comboBoxSelectIndex(idx, cb);
8  
}

Author comment

Began life as a copy of #1015211

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1017890
Snippet name: comboBoxSelectIndex
Eternal ID of this version: #1017890/1
Text MD5: 624a53469b570850af2ff26501d1b808
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-08-19 12:17:55
Source code size: 269 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 346 / 382
Referenced in: [show references]