static void removeFromConsole3(Component c) { JFrame frame = getFrame(c); if (frame == null) ret; Container cp = frame.getContentPane(); // This is our BorderLayout Container cp2 = (Container) getCenterComponent(cp); Container cp3 = (Container) getCenterComponent(cp2); if (cp3 != c.getParent()) { print("removeFromConsole3 fail"); ret; } cp3.remove(c); // free our component Container mainC = (Container) cp3.getComponents()[0]; cp3.remove(mainC); replaceCenterComponent(cp2, mainC); validateFrame(frame); }
Began life as a copy of #1004956
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1008116 |
Snippet name: | removeFromConsole3 - opposite of addToConsole3 |
Eternal ID of this version: | #1008116/3 |
Text MD5: | eb36034ed11a0c09dccebd3c3f8b19cd |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-04-24 23:56:38 |
Source code size: | 544 bytes / 14 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 442 / 479 |
Version history: | 2 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |