Article View: es.comp.lenguajes.java
Article #29553Re: drawString(), impresi�n en Java y todo falla.
From: Juan Gonzalo de Silva Medina
Date: Sun, 30 Nov 1997 00:00
Date: Sun, 30 Nov 1997 00:00
88 lines
3318 bytes
3318 bytes
�ste es un mensaje firmado criptogr�ficamente en formato MIME.
--------------ms8508184FEB1BE653C332A4D4
Content-Type: multipart/mixed; boundary="------------A16C1CCCA6AE553E7A863745"
Este es un mensaje multipartes en formato MIME.
--------------A16C1CCCA6AE553E7A863745
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
<HTML>
<P>Monkiki escribió:
<BLOCKQUOTE TYPE=CITE>Este es el código fuente:
<P>------------------------------------
<BR>public class print {
<BR> public static void main(String args[]) {
<BR> Frame f = new Frame("test");
<BR> f.pack();
<P> PrintJob pj =f.getToolkit().getPrintJob(f, "print1",
null);
<P> if (pj != null) {
<BR> Graphics g = pj.getGraphics();
<P> g.drawString("String", 20, 20);
<BR> g.fillOval(25, 25, 150, 100);
<P> g.dispose();
<P> pj.end();
<BR> }
<P> System.exit(0);
<BR> }
<P>}
<P>------------------------------------------------------
<P>Y, o me da un error "Este programa ha efectuado una operación
no válida", o un NullPointerException,
<BR>aúnque las 5 últimas veces que he compila/ejecutado el
programa, sólo me ha dado el primero.
<BR> </BLOCKQUOTE>
<B>Dime que te pasa si le quitas el g.drawString("String,xxxxx), ya verás.</B>
<P><B>:-)</B><B></B>
<P><B>Saludos.</B></HTML>
--------------A16C1CCCA6AE553E7A863745
Content-Type: text/x-vcard; charset=us-ascii; name="vcard.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Tarjeta de Juan Gonzalo de Silva Medina
Content-Disposition: attachment; filename="vcard.vcf"
begin: vcard
fn: Juan Gonzalo de Silva Medina
n: de Silva Medina;Juan Gonzalo
org: EL MONTE - Dpto. Desarrollo Inform�tico
adr: AV. Doctor Fedriani n� 23 p1 2C;;;Sevilla;Sevilla;41009;Espa�a
email;internet: gonzalo@caymasa.es
title: Analista Programador
tel;work: 34-5-4591436
tel;fax: 34-5-4591448
tel;home: 34-5-4906327
x-mozilla-cpt: ;0
x-mozilla-html: TRUE
version: 2.1
end: vcard
--------------A16C1CCCA6AE553E7A863745--
--------------ms8508184FEB1BE653C332A4D4
Content-Type: application/x-pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"
Content-Description: Firma criptogr�fica S/MIME
<encoded_portion_removed>
+bQullYios9yReTE+1lYCGNeBFPqfY9AdCpu22i/rgdgxnw=
--------------ms8508184FEB1BE653C332A4D4--
Technical Details
Message-ID:
<34812D1D.BAD9017A@caymasa.es>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<347d91ff.537941@news.redestb.es>Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII X-Google-Thread: 1116f3,ba114a22c674e09a X-Google-Attributes: gid1116f3,public From: Juan Gonzalo de Silva Medina <gonzalo@caymasa.es> Subject: Re: drawString(), impresi�n en Java y todo falla. Date: 1997/11/30 Message-ID: <34812D1D.BAD9017A@caymasa.es> X-Deja-AN: 293867706 References: <347d91ff.537941@news.redestb.es> To: quickly@mx3.redestb.es Organization: Unisource Espana NEWS SERVER Newsgroups: es.comp.lenguajes.java