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

7
LINES

< > BotCompany Repo | #1027822 // setTabTitles

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

Libraryless. Click here for Pure Java version (2646L/17K).

svoid setTabTitles(JTabbedPane tabs, S... titles) {
  if (tabs != null) swing {
    int n = min(tabs.getTabCount(), l(titles));
    for i to n:
      tabs.setTitleAt(i, titles[i]);
  }
}

Author comment

Began life as a copy of #1027820

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: #1027822
Snippet name: setTabTitles
Eternal ID of this version: #1027822/1
Text MD5: ff3fed47d7ea100009d5e33646e8b362
Transpilation MD5: 1d79550f06f818fe28f8e2e237fd8579
Author: stefan
Category: javax / stefan's os
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-04-13 20:50:59
Source code size: 192 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 191 / 272
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)