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

11
LINES

< > BotCompany Repo | #1016368 // possiblyInternalFrameTitle

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

Libraryless. Click here for Pure Java version (2283L/14K).

1  
static <A extends Component> A possiblyInternalFrameTitle(A c, S title) {
2  
  JInternalFrame f = getInternalFrame(c);
3  
  if (f != null) internalFrameTitle(f, title);
4  
  else frameTitle(getFrame(c), title);
5  
  ret c;
6  
}
7  
8  
sS possiblyInternalFrameTitle(Component c) {
9  
  JInternalFrame f = getInternalFrame(c);
10  
  ret f != null ? internalFrameTitle(f) : frameTitle(getFrame(c));
11  
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1016368
Snippet name: possiblyInternalFrameTitle
Eternal ID of this version: #1016368/6
Text MD5: db7b1d288274f7cb7024d6c452d1aeb7
Transpilation MD5: 4faaf564581219cbbe8e9f7c82164902
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-07-14 19:36:21
Source code size: 379 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 417 / 519
Version history: 5 change(s)
Referenced in: [show references]