1 | static Component getFrameContents(JFrame f) {
|
2 | Container cp = f.getContentPane(); |
3 | if (cp.getLayout() instanceof BorderLayout |
4 | && countComponents(cp) == 1) {
|
5 | Component c = getCenterComponent(cp); |
6 | if (c != null) ret c; |
7 | } |
8 | ret cp; |
9 | } |
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: | 508 / 549 |
| Version history: | 4 change(s) |
| Referenced in: | [show references] |