1 | static JFrame packFrameHeight(final Component c) {
|
2 | ret (JFrame) swing(func {
|
3 | JFrame frame = getFrame(c); |
4 | if (frame == null) null; |
5 | int w = frame.getWidth(); |
6 | frame.pack(); |
7 | frame.setSize(w, frame.getHeight()); |
8 | ret frame; |
9 | }); |
10 | } |
Began life as a copy of #1003296
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: | #1007757 |
| Snippet name: | packFrameHeight - only change frame's height |
| Eternal ID of this version: | #1007757/1 |
| Text MD5: | ce44bbf94e6a4638783d5ea1d3edfb84 |
| Author: | stefan |
| Category: | javax / gui |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2017-04-03 18:26:24 |
| Source code size: | 260 bytes / 10 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 749 / 756 |
| Referenced in: | [show references] |