Article View: es.comp.lenguajes.java
Article #27379Re: Donde está el error?
From: Jonathan Revusky
Date: Tue, 29 Sep 1998 00:00
Date: Tue, 29 Sep 1998 00:00
26 lines
1315 bytes
1315 bytes
p134409403@abonados.cplus.es wrote:
>
> Un saludo a todos
> Tengo un problema con el siguiente programa que no consigo resolver.
> Al pulsar el boton, deber�a aparecer el mensaje "HOLA" pero no
> aparece,
> �por qu�?
> Estoy utilizando jdk 1.2beta3
<snip>
public void actionPerformed(ActionEvent e){
if (e.getSource()==b){
getContentPane().add("North",new JLabel("HOLA"));
----> validate(); <----------
}
}
}
Pon la l�nea arriba con validate() en tu codigo. Funcionar�.
Jonathan Revusky
--
available for Java and Delphi Consulting
Make your .class files double-clickable
with SmartJ
http://www.bigfoot.com/~crystalline.solutions
Technical Details
Message-ID:
<36114B95.7FA5E3C3@jet.es>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<36114664.210533@noticias.ibernet.es>Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII X-Google-Thread: 1116f3,dc4185e3b7af7aca X-Google-Attributes: gid1116f3,public From: Jonathan Revusky <jrevusky@jet.es> Subject: Re: Donde está el error? Date: 1998/09/29 Message-ID: <36114B95.7FA5E3C3@jet.es> X-Deja-AN: 396110097 Content-Transfer-Encoding: 8bit References: <36114664.210533@noticias.ibernet.es> To: p134409403@abonados.cplus.es X-Accept-Language: en Content-Type: text/plain; charset=iso-8859-1 Organization: Telefonica Transmision de Datos Mime-Version: 1.0 Reply-To: jrevusky@bigfoot.com Newsgroups: es.comp.lenguajes.java