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

12
LINES

< > BotCompany Repo | #1010316 // fontSize - synonym of setFontSize + getFontSize

JavaX fragment (include)

static <A extends JComponent> A fontSize(float size, A a) {
  ret setFontSize(size, a);
}

static <A extends JComponent> A fontSize(A a, float size) {
  ret setFontSize(size, a);
}

static Float fontSize(JComponent c) {
  Font f = getFont(c);
  ret f == null ? null : f.getSize2D();
}

Author comment

Began life as a copy of #1007197

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1010316
Snippet name: fontSize - synonym of setFontSize + getFontSize
Eternal ID of this version: #1010316/6
Text MD5: ae84bc40917f7c7e59937809b5705edd
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-04-20 01:22:36
Source code size: 295 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 407 / 457
Version history: 5 change(s)
Referenced in: [show references]