I am fairly new to java, but I am trying to write a text editor program (mostly for my own experience). I have most of the functionality of a basic editor, but would like to do some printing from it. I am using swing, with my main components being an extension of JFrame, and a JTextArea contained therein.
Can anyone give me some pointers on how to go about coding the print menu option? I have skimmed some of the tutorials on printing, but it all seems to be geared to shapes, etc. I just want to take what is in the text area and print it out to the printer.
Any pointers would be greatly appreciated.
Nick
Can anyone give me some pointers on how to go about coding the print menu option? I have skimmed some of the tutorials on printing, but it all seems to be geared to shapes, etc. I just want to take what is in the text area and print it out to the printer.
Any pointers would be greatly appreciated.
Nick