html with jtextpane

J

Joly Makunga

hi !!, i'm doing a training course.
i have to build a program that allows opening an html file and to do a
preview of this file, like in Word: preview before the printing for example.

i decided to simulate that preview by chaging the size of the police.
i load the file in a JTextpane. the problem is i do not know how to
modify the police of the sheet.


i load the html document by using this line :

.....
tp.setPage(url)
.....

tp : this is the JTextpane
url : this is the html file

if you know how to modify the police of an html document, or how to do
the preview of a document or how to do a zoom of a document, contact me.

thank you for your responses

jolyqr
 
A

Andrew Thompson

hi !!, i'm doing a training course.

You are also multi-posting. Please stop multi-posting.

See the answer I posted on the other group to
progress this technically.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,996
Messages
2,570,238
Members
46,826
Latest member
robinsontor

Latest Threads

Top