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

8
LINES

< > TinyBrain | #1007382 - setFont

JavaX fragment (include)

static <A extends JComponent> A setFont(final Font font, final A a) {
  if (a != null) swing { a.setFont(font); }
  ret a;
}

static <A extends JComponent> A setFont(A a, Font font) {
  ret setFont(font, a);
}

Author comment

Began life as a copy of #1007197

download  show line numbers  debug dex   

Travelled to 2 computer(s): cfunsshuasjs, tvejysmllsmz

No comments. add comment

Snippet ID: #1007382
Snippet name: setFont
Eternal ID of this version: #1007382/5
Text MD5: 2ce128e4f67018ee8b1f8fa1508b7e70
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-09-04 00:05:45
Source code size: 216 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 55 / 49
Version history: 4 change(s)
Referenced in: [show]