Hello Shady,

I hope you are signed up to the list now and reading this...

> I want to use it like a template, and extend it step by step. This sample
> contains 4 button (that we don't see in code) to move, zoom+,zoom- and
> selection.

If, at some stage, you want to see how those controls are created,
have a look at the code for the initComponents method in the JMapFrame
class...
http://svn.osgeo.org/geotools/branches/2.6.x/modules/unsupported/swing/src/main/java/org/geotools/swing/JMapFrame.java

> Now I want to add my own button to the existing buttons. Is this possible?

Yes. In fact you will find examples of it in a couple of the other
example applications such as CRS Lab...

http://geotools.org/examples/crslab.html

You'll see that it's very similar to your code, so you're on the right
track (or at least the same track that we're on :)

Michael

------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to