sargent240
asked on
Java programming
I am using the following code to print a string to my prnter. It appears as though the font is proportional and makes it impossible to keep columns straight. How would I set the font to something like times Roman so I can set up a formatted string that will not be all over the place
JTextPane textPane = new JTextPane();
textPane.setText(printStri ng);
try {
textPane.print();
JTextPane textPane = new JTextPane();
textPane.setText(printStri
try {
textPane.print();
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Not a problem! :)
ASKER