Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JEditorPane and multiple fonts

843806May 25 2008 — edited May 25 2008
Hello. and thanks for reading me !!!


i have a problem trying to use JEditorPane, i am making the html i want him to work but i need it to use multiple tipe of fonts, for example here is a type of the html:

<body bgcolor="#FFFFFF"><div style="width:400px; ">
<p style="text-align:left; ">
<font style="letter-spacing: 0px; color: #0B333C; font-size: 100px; font-family: Verdana; "/>
</p>
<p style="text-align:left; ">
<font style="letter-spacing: 0px; color: #0B333C; font-size: 30px; font-family: Arial; ">Enter text here. Double click to edit </font><br>
<font style="letter-spacing: 0px; color: #0B333C; font-size: 30px; font-family: Times; ">Enter text here. Double click to edit </font>
</p>
<p style="text-align:left; ">
<font style="letter-spacing: 0px; color: #0B333C; font-size: 5px; font-family: Verdana; "/>
</p>
</div>
</body>

when i charge this in the JEdirtorPane he only use one type of fonts, ther is a way to make him use all the fonts that exist in the html? thanks for reading
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 22 2008
Added on May 25 2008
4 comments
516 views