Libraryless. Click here for Pure Java version (2930L/17K).
static <A extends JComponent> A jPreferredWidthToMaxWidth(A c) { if (c != null) swing { jMaxWidth(c, preferredWidth(c)); } ret c; }
Began life as a copy of #1020246
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1031113 |
| Snippet name: | jPreferredWidthToMaxWidth - limit component width to preferred |
| Eternal ID of this version: | #1031113/6 |
| Text MD5: | 213b3cf8cc48e53acfe392a23015fbe5 |
| Transpilation MD5: | 7df84bde66adb060a16d7a2c4a13f9a2 |
| Author: | stefan |
| Category: | javax / gui |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2021-05-06 14:13:39 |
| Source code size: | 138 bytes / 4 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 370 / 490 |
| Version history: | 5 change(s) |
| Referenced in: | [show references] |