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

13
LINES

< > BotCompany Repo | #1016524 // addToPossiblyInternalFrame

JavaX fragment (include)

1  
static Component addToPossiblyInternalFrame(final Component c, final Component toAdd) {
2  
  if (toAdd != null) swing {
3  
    RootPaneContainer frame = getPossiblyInternalFrame(c);
4  
    Container cp = frame.getContentPane();
5  
    new JPanel newCP;
6  
    newCP.setLayout(new BorderLayout);
7  
    newCP.add(BorderLayout.CENTER, cp);
8  
    newCP.add(BorderLayout.SOUTH, toAdd);
9  
    frame.setContentPane(newCP);
10  
    revalidate(frame);
11  
  }
12  
  ret c;
13  
}

Author comment

Began life as a copy of #1001528

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: #1016524
Snippet name: addToPossiblyInternalFrame
Eternal ID of this version: #1016524/1
Text MD5: d4bd4db79931123f62ff827e9fcf608a
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-06-21 21:28:21
Source code size: 444 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 301 / 339
Referenced in: [show references]