Results 1 to 2 of 2
  1. #1
    3ammary is offline Member
    Join Date
    Jan 2011
    Posts
    14
    Rep Power
    0

    Angry problem with priniting

    hello , please i have a little program. i want to print jtextpane with html content by printer ,when i print it it gives me exception

    129java.lang.ClassCastException: javax.swing.text.DefaultStyledDocument cannot be cast to javax.swing.text.html.HTMLDocument

    what can i do ...
    thanks alot in advance

  2. #2
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,097
    Rep Power
    20

    Default Re: problem with priniting

    The stack trace will tell you where you are going wrong.
    That exception says there's an attempt to cast between unrelated types.
    Please do not ask for code as refusal often offends.

    ** This space for rent **

Similar Threads

  1. Replies: 0
    Last Post: 11-07-2012, 12:44 PM
  2. Small problem with problem with Java, C++ parse program.
    By dragstang86 in forum New To Java
    Replies: 4
    Last Post: 10-30-2011, 03:43 AM
  3. Replies: 9
    Last Post: 09-21-2010, 04:15 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •