🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Como repinto un Panel?

#25820
From: Jonathan Revusky
Date: Mon, 08 Mar 1999 00:00
27 lines
1370 bytes

Juan Gonzalo de Silva Medina wrote:

> > Alguien sabe como solucionar esto????   Gracias
> 
> Has probado ha llamar al m�todo pack() del padre (la ventana)...

S�, pero el pack() tambi�n cambia el tama�o de la ventana y quiz� no
quiera hacer eso.

de hecho, window.pack() es simplemente un m�todo de comodidad que hace:

setSize(getPreferredSize());

y luego:

validate();

Me parece que es �ste �ltimo, validate() el m�todo que buscaba.

Jonathan Revusky
-- 
Java and Delphi Consulting
Make your .class files double-clickable
with SmartJ
http://www.bigfoot.com/~crystalline.solutions
Technical Details
Message-ID: <36E32AC8.ADC6079B@jet.es>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <36DC090C.668FBB88@a01-unix.gsyc.inf.uc3m.es> <36DDCE5A.FAEFBA0F@caymasa.es>

Show Full Headers
Complete Article Headers
X-Google-Language: SPANISH,ASCII
X-Google-Thread: 1116f3,56889e6d30d3d587
X-Google-Attributes: gid1116f3,public
From: Jonathan Revusky <jrevusky@jet.es>
Subject: Re: Como repinto un Panel?
Date: 1999/03/08
Message-ID: <36E32AC8.ADC6079B@jet.es>
X-Deja-AN: 452409480
Content-Transfer-Encoding: 8bit
References: <36DC090C.668FBB88@a01-unix.gsyc.inf.uc3m.es> <36DDCE5A.FAEFBA0F@caymasa.es>
X-Accept-Language: en
Content-Type: text/plain; charset=iso-8859-1
X-Complaints-To: usenet@lola.ctv.es
X-Trace: lola.ctv.es 920857335 25027 195.55.158.127 (8 Mar 1999 01:42:15 GMT)
Organization: CTV/JET
Mime-Version: 1.0
Reply-To: jrevusky@bigfoot.com
NNTP-Posting-Date: 8 Mar 1999 01:42:15 GMT
Newsgroups: es.comp.lenguajes.java