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

13
LINES

< > BotCompany Repo | #1020864 // selectTab

JavaX fragment (include)

ifclass JExtendedTabbedPane
  svoid selectTab(JExtendedTabbedPane tabs, int idx) {
    if (tabs != null) swing {
      tabs.setSelectedIndex(idx);
    }
  }
endif

svoid selectTab(JTabbedPane tabs, int idx) {
  if (tabs != null) swing {
    tabs.setSelectedIndex(idx);
  }
}

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1020864
Snippet name: selectTab
Eternal ID of this version: #1020864/2
Text MD5: ce4e3ff8af05a7d765434831feae638a
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-04-03 19:48:21
Source code size: 286 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 306 / 366
Version history: 1 change(s)
Referenced in: [show references]