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

8
LINES

< > BotCompany Repo | #1001522 // Swing: Courier font, two colors, bigger and bolder (size 14)

JavaX source code [tags: use-pretranspiled] - run with: x30.jar

Libraryless. Click here for Pure Java version (2361L/16K/55K).

!752

p {
  JTextPane pane = new JTextPane();
  appendColoredText(pane, Color.green, "Hello! \n");
  appendColoredText(pane, Color.blue, "World :)\n");
  showFrame("Courier?", pane);
}

Author comment

Began life as a copy of #1001521

download  show line numbers  debug dex  old transpilations   

Travelled to 16 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, teubizvjbppd, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1001522
Snippet name: Swing: Courier font, two colors, bigger and bolder (size 14)
Eternal ID of this version: #1001522/1
Text MD5: f7a6f48e8cfa5badef682971d1a38cf4
Transpilation MD5: c0418b29a6134066619e6da1bec1c9cb
Author: stefan
Category: javax
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-09-13 06:10:02
Source code size: 193 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 610 / 599
Referenced in: [show references]