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

    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
    Rep Power

    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, 01: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, 04:43 AM
  3. Replies: 9
    Last Post: 09-21-2010, 05: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