Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

a couple questons on printing in JDK 1.2.2


  • From: sjb@xxxxxxxxxxxxxxxxxxxxxx (Steven Buroff)
  • Subject: a couple questons on printing in JDK 1.2.2
  • Date: Thu, 30 Sep 1999 16:18:39 -0400

This is a multi-part message in MIME format.

------=_NextPart_000_0177_01BF0B5F.74B79450
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

I'm printing the text in a JTextPane. It is basically working but there =
are two problems.

First, the printing works to a real printer but if I print to a file, =
nothing prints. It creates
the file but it is empty. No errors occur. Anyone know what might cause =
this?

Second question. I create a font for printing that matches the Style I =
use with the JTextPane.
The same point size, the same font family, etc. However, the printed =
output looks considerably
larger than the displayed text. Anyone know what might cause this? TIA.

Steve Buroff

------=_NextPart_000_0177_01BF0B5F.74B79450
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2014.210" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT size=3D2>I'm printing the text in a JTextPane. It is =
basically working=20
but there are two problems.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=3D2>First, the printing works to a real printer but if I =
print to=20
a file, nothing prints. It creates</FONT></DIV>
<DIV><FONT size=3D2>the file but it is empty. No errors occur. Anyone =
know what=20
might cause this?</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=3D2>Second question. I create a font for printing that =
matches the=20
Style I use with the JTextPane.</FONT></DIV>
<DIV><FONT size=3D2>The same point size, the same font family, etc. =
However, the=20
printed output looks considerably</FONT></DIV>
<DIV><FONT size=3D2>larger than the displayed text. Anyone know what =
might cause=20
this? TIA.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=3D2>Steve Buroff</FONT></DIV></BODY></HTML>

------=_NextPart_000_0177_01BF0B5F.74B79450--


---
To unsubscribe, mail advanced-java-unsubscribe@xxxxxxxxxxxxxxxx
To get help, mail advanced-java-help@xxxxxxxxxxxxxxxx