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

5
LINES

< > BotCompany Repo | #1028693 // updateEnclosingTabTitleWithCount

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

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

svoid updateEnclosingTabTitleWithCount(JComponent c, int n) {
  Pair<JTabbedPane, Int> p = enclosingTab(c);
  if (p == null) ret;
  setTabTitle(p.a, p.b, appendBracketedCount(dropTrailingBracketedCount(getTabTitle(p.a, p.b)), n));
}

Author comment

Began life as a copy of #1028107

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: #1028693
Snippet name: updateEnclosingTabTitleWithCount
Eternal ID of this version: #1028693/1
Text MD5: a53d4755e3c2466fba4a8c85c92932e9
Transpilation MD5: 1e3e0be9c7eb105625cfc081ad474ad0
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-07-05 19:22:59
Source code size: 236 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 234 / 341
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1033712 - setEnclosingTabTitle