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

5
LINES

< > BotCompany Repo | #1024161 // setDocument

JavaX fragment (include)

svoid setDocument(JTextComponent tc, Document doc) {
  if (tc != null) swing {
    tc.setDocument(doc);
  }
}

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: #1024161
Snippet name: setDocument
Eternal ID of this version: #1024161/1
Text MD5: c98c0be7cc25847ef6962b7eb34dda78
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-07-23 21:57:54
Source code size: 113 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 231 / 265
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)