Libraryless. Click here for Pure Java version (3142L/18K).
sclass JLineHeightTextArea > JTextArea { double lineHeightFactor = 1.0; *() {} *(double *lineHeightFactor) {} @Override public FontMetrics getFontMetrics(Font font) { return new FontMetricsWrapper(super.getFontMetrics(font)) { @Override public int getHeight() { return iround(super.getHeight()*lineHeightFactor); } }; } }
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
Snippet ID: | #1031250 |
Snippet name: | JLineHeightTextArea |
Eternal ID of this version: | #1031250/2 |
Text MD5: | 3fcbeb0e6f9d87e887fb4280bd3d92f0 |
Transpilation MD5: | 6946629b930780ca524eb9f84098394e |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-05-25 19:10:23 |
Source code size: | 410 bytes / 17 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 204 / 376 |
Version history: | 1 change(s) |
Referenced in: | #1034167 - Standard Classes + Interfaces (LIVE, continuation of #1003674) |