1 | static void addToWindowRightHalf(Component c, Component toAdd) { |
2 | JFrame frame = getFrame(c); |
3 | Container cp = frame.getContentPane(); |
4 | frame.setContentPane(hgrid(cp, toAdd)); |
5 | revalidate(frame); |
6 | } |
Began life as a copy of #1001528
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1005545 |
Snippet name: | addToWindowRightHalf (adds stuff in right half of window) |
Eternal ID of this version: | #1005545/1 |
Text MD5: | f79cd4fd58dd5a422f53ab30b6636418 |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-11-26 15:53:23 |
Source code size: | 205 bytes / 6 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 617 / 644 |
Referenced in: | [show references] |