[josm-dev] Java experts

Dirk Stöcker openstreetmap at dstoecker.de
Sun Nov 22 13:58:03 GMT 2009


On Sun, 22 Nov 2009, Ľubomír Varga wrote:

> I dont have info about that concrete situation, but as I know java gui api,
> there should be some function called "revalidate()" which should do
> revalidation also on parent components. So try to override this on core
> panel, than from overriden method call original revalidate
> (super.revalidate()) and than your updateMeta().
>
> There are also AspectJ (ascpect programming paradigm) which could solve this,
> but imho this is not right solution.
>
> I hope revalidate, or paint or some update function overriding should help.
>
> GL and pls post also final solution to this mail thread.

I did add a custom JPanel class and overwrote paint method. See r2499. 
Probably not the best solution, but works fine :-)

Ciao
-- 
http://www.dstoecker.eu/ (PGP key available)


More information about the josm-dev mailing list