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

5
LINES

< > BotCompany Repo | #1035166 // getTab

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

Libraryless. Click here for Pure Java version (7630L/43K).

static Component getTab(JTabbedPane tabs, int idx) {
  ret tabs == null || idx < 0 ? null : swing( ->
    idx < tabs.getTabCount() ? tabs.getComponentAt(idx) : null
  );
}

Author comment

Began life as a copy of #1028109

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1035166
Snippet name: getTab
Eternal ID of this version: #1035166/1
Text MD5: f14ce34772b98faed7bdc83b2851c2de
Transpilation MD5: f1c77824f4ebdb1ff896eaa3397b838d
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 18:57:47
Source code size: 175 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 68 / 96
Referenced in: [show references]