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

8
LINES

< > BotCompany Repo | #1017890 // comboBoxSelectIndex

JavaX fragment (include)

static JComboBox comboBoxSelectIndex(final int idx, final JComboBox cb) {
  if (cb != null) swing { pcall-short { cb.setSelectedIndex(idx); } }
  ret cb;
}

static JComboBox comboBoxSelectIndex(final JComboBox cb, int idx) {
  ret comboBoxSelectIndex(idx, cb);
}

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