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

15
LINES

< > BotCompany Repo | #1027820 // setTabTitle

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

Transpiled version (2645L) is out of date.

ifclass JExtendedTabbedPane
  svoid setTabTitle(JExtendedTabbedPane tabs, int idx, S title) {
    if (tabs != null && idx >= 0) swing {
      if (idx < tabs.getTabCount())
        tabs.setTitleAt(idx, title);
    }
  }
endif

svoid setTabTitle(JTabbedPane tabs, int idx, S title) {
  if (tabs != null && idx >= 0) swing {
    if (idx < tabs.getTabCount())
      tabs.setTitleAt(idx, title);
  }
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1027820
Snippet name: setTabTitle
Eternal ID of this version: #1027820/2
Text MD5: c2210a2a2f09dba869fe6f4ba8900a73
Author: stefan
Category: javax / stefan's os
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-04-03 19:46:32
Source code size: 410 bytes / 15 lines
Pitched / IR pitched: No / No
Views / Downloads: 198 / 311
Version history: 1 change(s)
Referenced in: [show references]