1 | static void makeFakeSingleComponentPanel(JPanel panel, Component c) { |
2 | panel.setLayout(new BorderLayout); |
3 | panel.removeAll(); |
4 | panel.add(c); |
5 | panel.revalidate(); |
6 | } |
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: | #1015279 |
Snippet name: | makeFakeSingleComponentPanel |
Eternal ID of this version: | #1015279/1 |
Text MD5: | fcc3a9026515df7b9a5dc522ca32d390 |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-05-11 13:15:37 |
Source code size: | 172 bytes / 6 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 326 / 368 |
Referenced in: | [show references] |