1 | static JTextPane jtextpane() { |
2 | ret jenableUndoRedo(swing(func -> JTextPane { new JTextPane })); |
3 | } |
4 | |
5 | static JTextPane jtextpane(S text, AttributeSet attributes) { |
6 | JTextPane pane = jtextpane(); |
7 | pane.setCharacterAttributes(attributes, true); |
8 | pane.setText(text); |
9 | ret pane; |
10 | } |
11 | |
12 | static JTextPane jtextpane(S text) { |
13 | ret jtextpane(text, style_normal()); |
14 | } |
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mowyntqkapby, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1009721 |
Snippet name: | jtextpane - make JTextPane |
Eternal ID of this version: | #1009721/5 |
Text MD5: | b6501a33cbeb34d72fc8a0f7f5ea633d |
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:25:00 |
Source code size: | 371 bytes / 14 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 460 / 506 |
Version history: | 4 change(s) |
Referenced in: | [show references] |