[Schmitzm-commits] r87 - trunk/src/skrueger/geotools
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Thu Apr 23 21:39:15 CEST 2009
Author: alfonx
Date: 2009-04-23 21:39:13 +0200 (Thu, 23 Apr 2009)
New Revision: 87
Modified:
trunk/src/skrueger/geotools/MapView.java
Log:
* MapView() constructor API change corrected.
Modified: trunk/src/skrueger/geotools/MapView.java
===================================================================
--- trunk/src/skrueger/geotools/MapView.java 2009-04-23 18:50:02 UTC (rev 86)
+++ trunk/src/skrueger/geotools/MapView.java 2009-04-23 19:39:13 UTC (rev 87)
@@ -1,6 +1,7 @@
package skrueger.geotools;
import java.awt.BorderLayout;
+import java.awt.Window;
import javax.swing.BorderFactory;
import javax.swing.JComponent;
@@ -44,12 +45,12 @@
* {@link GeoMapPane}, a {@link MapContextManagerInterface} on the left,
* and some buttons floating over the {@link JMapPane}
*/
- public MapView(MapPaneToolBar toolBar) {
+ public MapView(Window parentGui, MapPaneToolBar toolBar) {
super(new BorderLayout());
// Call initialize() by yourself afterwards.
// Needed because variables for the overwritten methods
// are not yet set.
- getGeoMapPane().getMapPane().setWaitCursorComponent(SwingUtil.getParentWindow(this));
+ getGeoMapPane().getMapPane().setWaitCursorComponent(parentGui);
if ( toolBar == null )
toolBar = new MapPaneToolBar(getMapPane());
jToolBar = toolBar;
@@ -60,8 +61,8 @@
* {@link GeoMapPane}, a {@link MapContextManagerInterface} on the left,
* and some buttons floating over the {@link JMapPane}
*/
- public MapView() {
- this(null);
+ public MapView(Window parentGui) {
+ this(parentGui, null);
}
/**
More information about the Schmitzm-commits
mailing list