Hi,
I got code to print contents of JTextArea from this forum. I tried it and it works...sort of. When I run application the data is sent to the printer, but nothing gets printed out. I am not sure why. I read on one of page that java.awt.print has a bug where the default color for text is white, but this issue is taken care of here. So I am not sure why it does not work.
In the class, a page number is send to printer as a footer -- I get that, but nothing that I set using: PrintJText.printComponent(new JTextArea("test111")); in main.
What's wrong here? May be someone can run this and respond with what they got?
thanks a lot,
Alex
I got code to print contents of JTextArea from this forum. I tried it and it works...sort of. When I run application the data is sent to the printer, but nothing gets printed out. I am not sure why. I read on one of page that java.awt.print has a bug where the default color for text is white, but this issue is taken care of here. So I am not sure why it does not work.
In the class, a page number is send to printer as a footer -- I get that, but nothing that I set using: PrintJText.printComponent(new JTextArea("test111")); in main.
What's wrong here? May be someone can run this and respond with what they got?
thanks a lot,
Alex