Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

4
LINES

< > BotCompany Repo | #1024210 // componentFontMetrics

JavaX fragment (include)

1  
static FontMetrics componentFontMetrics(JComponent c) {
2  
  Font font = getFont(c);
3  
  ret font == null ? null : swing(func -> FontMetrics { c.getFontMetrics(font) });
4  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1024210
Snippet name: componentFontMetrics
Eternal ID of this version: #1024210/1
Text MD5: e6bf0b44bbd1cb2c68086148b5a314f1
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-07-26 12:10:48
Source code size: 169 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 263 / 314
Referenced in: [show references]