Tethik's Profile User Rating: -----

Reputation: 17 Tradesman
Group:
Active Members
Active Posts:
61 (0.04 per day)
Joined:
14-March 10
Profile Views:
4,286
Last Active:
User is offline Sep 27 2012 03:28 PM
Currently:
Offline

Previous Fields

Country:
SE
OS Preference:
Linux
Favorite Browser:
FireFox
Favorite Processor:
Who Cares
Favorite Gaming Platform:
PC
Your Car:
Who Cares
Dream Kudos:
0
Icon   Tethik is lurking.

Blog entries

Tethik's Blag > How to append to a HTML JEditorPane

Posted 15 April 2011

Let's say we wanted to append a String "text" to a JEditorPane, making sure that any html is parsed:
String text = "<p> Example </p>";

I've found two ways to do it.

The simple but bad way:
JEditorPane pane = new JEditorPane("text/html", null);pane.setText(pane.getText() + text);
...

Read Full Entry →

My Information

Member Title:
D.I.C Head
Age:
23 years old
Birthday:
October 1, 1991
Gender:
Location:
Stockholm
Programming Languages:
PHP, C++, Java, C#

Contact Information

E-mail:
Private
MSN:
MSN  zockas@hotmail.com

Friends

Tethik hasn't added any friends yet.

Comments

Page 1 of 1
  1. Photo

    NotarySojac Icon

    01 Sep 2011 - 11:37
    awesome, I'm glad!
  2. Photo

    Tethik Icon

    30 Aug 2011 - 08:57
    You're free to use it as you wish NotarySojac. Credits are nice of course but I would only ask for a small notice.
  3. Photo

    NotarySojac Icon

    29 Aug 2011 - 15:41
    Hey, I'm posting it now at http://www.dreamincode.net/forums/topic/245363-sudoku-on-rails-code-critiques-plz/
    Let me know if you'd like anything changed or removed, I'd be more than happy to remove it when you get this. ttyl
  4. Photo

    NotarySojac Icon

    29 Aug 2011 - 12:42
    Hey Tethik,
    Remember that Sudoku challenge that you participated in? Can I use your code in an upcoming, open source demo project I'm about to make a post for? You shall certainly be credited, and only minor adjustments were made to your Sudoku.rb to allow it to interpret puzzles directly on the command line.
Page 1 of 1