You will need to sign up to our users list (on source forge in order
to ask questions ... we have not sorted out how to "turn off" this
codehaus list).

On Fri, Feb 5, 2010 at 9:16 AM, Shady <[email protected]> wrote:
>
> Hello everybody,
>
> I'm not familiar with geotools, I just start to discover it. So please be
> mercy with me.:handshake:
>
> I tried QuickStart.java sample, provided by geotools :
>    public static void main(String[] args) throws Exception {
>        File file = JFileDataStoreChooser.showOpenFile("shp", null);
>        if (file == null) {
>            return;
>        }
>        FileDataStore store = FileDataStoreFinder.getDataStore(file);
>        FeatureSource featureSource = store.getFeatureSource();
>        MapContext map = new DefaultMapContext();
>        map.setTitle("Quickstart");
>        map.addLayer(featureSource, null);
>        JMapFrame mapFrame = new JMapFrame();
>        mapFrame.showMap(map);
>    }
> 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. Now I want to add my own button to the existing buttons. Is this
> possible?
> In code I wrote this statements :
>     JButton btn = new Buttun("Information");
>     JToolBar toolbar = mapFrame.getToolBar();
>     Toolbar.add( new JButton(btn);
>
> Of course this statements are before mapFrame.showMap(map); statement.
> In advance, thank's for your help.
>
> Shady.
> --
> View this message in context: 
> http://old.nabble.com/Add-buttons-to-a-toolbar-in-QuickStart.java-template-tp27460626p27460626.html
> Sent from the geotools - dev mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>    http://xircles.codehaus.org/manage_email
>
>
>

------------------------------------------------------------------------------
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