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

11
LINES

< > BotCompany Repo | #1034758 // selectTabComponent

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

Transpiled version (5240L) is out of date.

svoid selectTabComponent(JTabbedPane tabs, Component c) swing {
  int idx = indexOfTabComponent(tabs, c);
  if (idx >= 0)
    tabs.setSelectedIndex(idx);
}

svoid selectTabComponent(JExtendedTabbedPane tabs, Component c) swing {
  int idx = indexOfTabComponent(tabs, c);
  if (idx >= 0)
    tabs.setSelectedIndex(idx);
}

Author comment

Began life as a copy of #1020864

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, ekrmjmnbrukm, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1034758
Snippet name: selectTabComponent
Eternal ID of this version: #1034758/2
Text MD5: 5a8f9e087f2229898cb18caa827ff43d
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-05-13 19:20:59
Source code size: 330 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 16 / 39
Version history: 1 change(s)
Referenced in: [show references]