static Component addToPossiblyInternalFrame(final Component c, final Component toAdd) { if (toAdd != null) swing { RootPaneContainer frame = getPossiblyInternalFrame(c); Container cp = frame.getContentPane(); new JPanel newCP; newCP.setLayout(new BorderLayout); newCP.add(BorderLayout.CENTER, cp); newCP.add(BorderLayout.SOUTH, toAdd); frame.setContentPane(newCP); revalidate(frame); } ret c; }
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: | 364 / 406 |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |