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

8
LINES

< > BotCompany Repo | #1009730 // appendToTextPane

JavaX fragment (include)

1  
static void appendToTextPane(JTextPane p, S text, AttributeSet attributes) ctex {
2  
  StyledDocument doc = p.getStyledDocument();
3  
  doc.insertString(doc.getLength(), text, attributes);
4  
}
5  
6  
static void appendToTextPane(JTextPane p, S text) {
7  
  appendToTextPane(p, text, style_normal());
8  
}

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: #1009730
Snippet name: appendToTextPane
Eternal ID of this version: #1009730/5
Text MD5: 1cad16e0e86d661ee1adee7e37ebd402
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-04-14 17:38:49
Source code size: 293 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 496 / 550
Version history: 4 change(s)
Referenced in: [show references]