Uses 3874K of libraries. Click here for Pure Java version (2645L/18K/68K).
!7 p-substance { JTextPane pane = jtextpane("Eine ", style_bold()); appendToTextPane(pane, "Kleine ", style_foreground(Color.red, style_background(Color.blue, style_italic()))); appendToTextPane(pane, "Nachtmusic", style_fontSize(24)); showFrame(pane); }
Began life as a copy of #1000966
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, teubizvjbppd, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1000992 |
Snippet name: | Swing: Styled text (multiple colors, sizes in one text) |
Eternal ID of this version: | #1000992/6 |
Text MD5: | 88227cd9e1a28c344b499d19b9e64cd7 |
Transpilation MD5: | 0f7f5cc366f2fdd24006a03c762d0643 |
Author: | stefan |
Category: | javax |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-08-15 18:44:54 |
Source code size: | 280 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 612 / 698 |
Version history: | 5 change(s) |
Referenced in: | #1001521 - Swing: Test Courier font & two colors #1009737 - Try putting an image in JTextPane [WORKS] #3000382 - Answer for ferdie (>> t = 1, f = 0) |