Article View: es.comp.lenguajes.java
Article #576Re: Cuando calificar los nombres y cuando no...
From: Ricardo Palomares Martinez
Date: Mon, 09 Apr 2007 09:28
Date: Mon, 09 Apr 2007 09:28
29 lines
1891 bytes
1891 bytes
leonardoazpurua@cantv.net escribió: > On 8 abr, 13:10, Ricardo Palomares Martinez <rpm.PU...@iespana.es> > wrote: >> Porque se importan clases, no paquetes. Deberías haber escrito: >> >> import javax.swing.border.TitledBorder; >> > > Hola, > > Pero si importo <javax.swing.border> y luego escribo > TitledBorder.algo, no deberia javac entender que TitledBorder se > refiere al TitledBorder definido en javax.swing.border, y que algo > deberia ser un miembro estatico de esa clase? > No, porque como digo se importan clases, no paquetes. Cuando escribes: import javax.swing.*; no importas el paquete javax.swing, sino todas las clases que cuelgan directamente de javax.swing. Es más, ¿te compila correctamente si pones sólo el nombre del paquete sin ".*" al final? Porque a mí no. Saludos. -- If it's true that we are here to help others, then what exactly are the OTHERS here for?
Technical Details
Message-ID:
<njdpe4-obc.ln1@Father.family>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.germany.com!aioe.org!Father.family!newsReferences:
<1175993837.599029.45350@d57g2000hsg.googlegroups.com> <v8kne4-kp6.ln1@Father.family> <1176063446.729360.135650@d57g2000hsg.googlegroups.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 1116f3,c378bba96c47ef62 X-Google-Attributes: gid1116f3,public X-Google-Language: SPANISH,ASCII Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.germany.com!aioe.org!Father.family!news From: Ricardo Palomares Martinez <rpm.PUBLI@iespana.es> Newsgroups: es.comp.lenguajes.java Subject: Re: Cuando calificar los nombres y cuando no... Date: Mon, 09 Apr 2007 11:28:55 +0200 Organization: Hogar, dulce hogar Lines: 29 Message-ID: <njdpe4-obc.ln1@Father.family> References: <1175993837.599029.45350@d57g2000hsg.googlegroups.com> <v8kne4-kp6.ln1@Father.family> <1176063446.729360.135650@d57g2000hsg.googlegroups.com> NNTP-Posting-Host: RiEj0wAVH0fu3/kuoa+Uwg.user.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (X11; U; Linux i686; es-ES; rv:1.8.1.2) Gecko/20070221 SeaMonkey/1.1.1 Mnenhy/0.7.4.0