[josm-dev] Java experts
Ævar Arnfjörð Bjarmason
avarab at gmail.com
Sun Nov 22 12:35:00 GMT 2009
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.html
http://java.sun.com/j2se/1.4.2/docs/api/java/awt/event/ComponentListener.html
More information about the josm-dev
mailing list