🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: es.comp.lenguajes.java
Article #29553

Re: drawString(), impresi�n en Java y todo falla.

#29553
From: Juan Gonzalo de Silva Medina
Date: Sun, 30 Nov 1997 00:00
88 lines
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>
&nbsp;

<P>Monkiki escribi&oacute;:
<BLOCKQUOTE TYPE=CITE>Este es el c&oacute;digo fuente:

<P>------------------------------------
<BR>public class print {
<BR>&nbsp; public static void main(String args[]) {
<BR>&nbsp;&nbsp;&nbsp; Frame f = new Frame("test");
<BR>&nbsp;&nbsp;&nbsp; f.pack();

<P>&nbsp;&nbsp;&nbsp; PrintJob pj =f.getToolkit().getPrintJob(f, "print1",
null);

<P>&nbsp;&nbsp;&nbsp; if (pj != null) {
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Graphics g = pj.getGraphics();

<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; g.drawString("String", 20, 20);
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; g.fillOval(25, 25, 150, 100);

<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; g.dispose();

<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; pj.end();
<BR>&nbsp;&nbsp;&nbsp; }

<P>&nbsp;&nbsp;&nbsp; System.exit(0);
<BR>&nbsp; }

<P>}

<P>------------------------------------------------------

<P>Y, o me da un error "Este programa ha efectuado una operaci&oacute;n
no v&aacute;lida", o un NullPointerException,
<BR>a&uacute;nque las 5 &uacute;ltimas veces que he compila/ejecutado el
programa, s&oacute;lo me ha dado el primero.
<BR>&nbsp;</BLOCKQUOTE>
<B>Dime que te pasa si le quitas el g.drawString("String,xxxxx), ya ver&aacute;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-mail
References: <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