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

9
LINES

< > BotCompany Repo | #1022679 // getFrameContents

JavaX fragment (include)

static Component getFrameContents(JFrame f) {
  Container cp = f.getContentPane();
  if (cp.getLayout() instanceof BorderLayout
    && countComponents(cp) == 1) {
    Component c = getCenterComponent(cp);
    if (c != null) ret c;
  }
  ret cp;
}

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1022679
Snippet name: getFrameContents
Eternal ID of this version: #1022679/5
Text MD5: e884d1666fc066db88855933ce3b3e6d
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-03-31 16:42:25
Source code size: 254 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 304 / 332
Version history: 4 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)