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.

1  
ifclass JExtendedTabbedPane
2  
  svoid setTabTitle(JExtendedTabbedPane tabs, int idx, S title) {
3  
    if (tabs != null && idx >= 0) swing {
4  
      if (idx < tabs.getTabCount())
5  
        tabs.setTitleAt(idx, title);
6  
    }
7  
  }
8  
endif
9  
10  
svoid setTabTitle(JTabbedPane tabs, int idx, S title) {
11  
  if (tabs != null && idx >= 0) swing {
12  
    if (idx < tabs.getTabCount())
13  
      tabs.setTitleAt(idx, title);
14  
  }
15  
}

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: 200 / 315
Version history: 1 change(s)
Referenced in: [show references]