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

5
LINES

< > BotCompany Repo | #1031120 // tempSetFont

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (30L/1K).

static AutoCloseable tempSetFont(Graphics g, Font font) {
  Font oldFont = g.getFont();
  g.setFont(font);
  ret autoCloseable { g.setFont(oldFont); };
}

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt

No comments. add comment

Snippet ID: #1031120
Snippet name: tempSetFont
Eternal ID of this version: #1031120/1
Text MD5: bb56db0ccbed3c5b97346ff0ec600103
Transpilation MD5: 456d869622940df22b95b0c36de564c6
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-05-07 15:31:01
Source code size: 157 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 173 / 218
Referenced in: [show references]