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

7
LINES

< > BotCompany Repo | #1020383 - fontSizePlus - increase JComponent's font size

JavaX fragment (include)

static <A extends JComponent> A fontSizePlus(final int delta, final A c) {
  if (c != null) swing {
    Font font = c.getFont();
    c.setFont(font.deriveFont(font.getSize2D()+delta));
  }
  ret c;
}

Author comment

Began life as a copy of #1007347

download  show line numbers  debug dex   

Travelled to 6 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, mqqgnosmbjvj, pzhvpgtvlbxg, tvejysmllsmz

No comments. add comment

Snippet ID: #1020383
Snippet name: fontSizePlus - increase JComponent's font size
Eternal ID of this version: #1020383/4
Text MD5: 21bd59f0b9f72047025a0eb452530e3e
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-12-18 13:03:33
Source code size: 205 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 116 / 134
Version history: 3 change(s)
Referenced in: [show references]

Formerly at http://tinybrain.de/1020383 & http://1020383.tinybrain.de