html with jtextpane

Discussion in 'Java' started by Joly Makunga, Jul 4, 2005.

  1. Joly Makunga

    Joly Makunga Guest

    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
     
    Joly Makunga, Jul 4, 2005
    #1
    1. Advertising

  2. Andrew Thompson, Jul 4, 2005
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. rj

    JTextPane columnar data

    rj, Sep 1, 2003, in forum: Java
    Replies:
    1
    Views:
    496
    Sandip Chitale
    Sep 1, 2003
  2. Adam
    Replies:
    0
    Views:
    447
  3. Sudarshan Raghavan

    JTextPane memory leak

    Sudarshan Raghavan, Oct 28, 2003, in forum: Java
    Replies:
    1
    Views:
    1,174
    Robert Olofsson
    Oct 29, 2003
  4. Kalpesh Modha

    JTextpane and mxing with HTML.

    Kalpesh Modha, Sep 13, 2004, in forum: Java
    Replies:
    3
    Views:
    459
    Andrew Thompson
    Sep 13, 2004
  5. Adam Polt
    Replies:
    0
    Views:
    390
    Adam Polt
    May 8, 2007
Loading...

Share This Page