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

17
LINES

< > BotCompany Repo | #1015822 // internalFrameTitle

JavaX fragment (include)

static <A extends Component> A internalFrameTitle(A c, fS title) {
  final JInternalFrame f = getInternalFrame(c);
  if (f != null) swing {
    f.setTitle(unnull(title));
    toolTip(getInternalFrameTitlePaneComponent(f), title);
  }
  ret c;
}

static <A extends Component> A internalFrameTitle(S title, A c) {
  ret internalFrameTitle(c, title);
}

static S internalFrameTitle(Component c) {
  final JInternalFrame f = getInternalFrame(c);
  ret f == null ? null : swing(func -> S { f.getTitle() });
}

Author comment

Began life as a copy of #1010147

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1015822
Snippet name: internalFrameTitle
Eternal ID of this version: #1015822/5
Text MD5: bdbbd9509d9eacc6adf45ec77099a9d0
Author: stefan
Category:
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-01-10 18:55:06
Source code size: 521 bytes / 17 lines
Pitched / IR pitched: No / No
Views / Downloads: 384 / 446
Version history: 4 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1015879 - setInternalFrameTitle