Hi all,
I´ve been reading the code but I didn´t find the way to customize a tool bar
(changing the zoom in/out cursor icons for example).
I have a JPanel with a JSplitPane. As the left component I have a JMapPane
displaying a shapefile (correctly), and in right component, I´ve put a tool
bar with two buttons, zoom in and zoom out (I´ll add more).
Buttons appear and work fine in the map, and I can set buttons icon/text
passing then in JButton´s constructor.
Here is the code part where I declare and set a zoom button (only the code
part of interest).
JButton zoomInButton = new JButton(new ImageIcon("/images/zoom_in.png"));
ZoomInAction zoomIn = new ZoomInAction(this.mapPane);
this.zoomInButton.addActionListener(zoomIn);
Is there a way to change cursor icon for example?
Thanks.
Alberto Silva López.
Researcher and Software Developer @ University of A Coruña (UDC).
------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users