[josm-dev] Java experts
Ľubomír Varga
luvar at plaintext.sk
Sun Nov 22 12:55:23 GMT 2009
Hi,
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.
On Sunday 22 November 2009 13:35:00 Ævar Arnfjörð Bjarmason wrote:
> On Sun, Nov 22, 2009 at 10:09, Dirk Stöcker <openstreetmap at dstoecker.de>
wrote:
> > Hello,
> >
> > a short question for the all Java experts here:
> >
> > In the file
> >
> > src/org/openstreetmap/josm/gui/preferences/ProjectionPreference.java
> >
> > the updateMeta() function should be called whenever one of the elements
> > of the projSubPrefPanel is modified. Does anyone know how to do this?
>
> (I don' know anything about Java)
>
> Perhaps adding a component listener to projSubPrefPanel will do what
> you want? There are only listeners for hidden/moved/resized/shown.
> componentResized is "Invoked when the component's size changes" so
> that might do what you want:
>
>
> http://java.sun.com/docs/books/tutorial/uiswing/events/componentlistener.ht
>ml
> http://java.sun.com/j2se/1.4.2/docs/api/java/awt/event/ComponentListener.ht
>ml
>
> _______________________________________________
> josm-dev mailing list
> josm-dev at openstreetmap.org
> http://lists.openstreetmap.org/listinfo/josm-dev
--
Odborník na všetko je zlý odborník. Ja sa snažím byť výnimkou potvrdzujúcou
pravidlo.
More information about the josm-dev
mailing list