Index: applications/editors/josm/plugins/wmsplugin/src/wmsplugin/WMSLayer.java
===================================================================
--- applications/editors/josm/plugins/wmsplugin/src/wmsplugin/WMSLayer.java	(revision 18408)
+++ applications/editors/josm/plugins/wmsplugin/src/wmsplugin/WMSLayer.java	(revision 18597)
@@ -5,4 +5,5 @@
 import java.awt.Component;
 import java.awt.Graphics;
+import java.awt.Graphics2D;
 import java.awt.Toolkit;
 import java.awt.event.ActionEvent;
@@ -27,4 +28,5 @@
 import org.openstreetmap.josm.actions.DiskAccessAction;
 import org.openstreetmap.josm.actions.SaveActionBase;
+import org.openstreetmap.josm.data.Bounds;
 import org.openstreetmap.josm.data.ProjectionBounds;
 import org.openstreetmap.josm.data.coor.EastNorth;
@@ -69,5 +71,5 @@
 	/** set to true if the user confirmed to use an potentially invalid WMS base url */
 	private boolean isInvalidUrlConfirmed = false;
-	
+
 	public WMSLayer() {
 		this(tr("Blank Layer"), null, null);
@@ -79,5 +81,5 @@
 		super(name);
 		alphaChannel.setSelected(Main.pref.getBoolean("wmsplugin.alpha_channel"));
-		setBackgroundLayer(true); /* set global background variable */ 
+		setBackgroundLayer(true); /* set global background variable */
 		initializeImages();
 		this.baseURL = baseURL;
@@ -112,5 +114,5 @@
 
 	@Override
-	public void destroy() {	
+	public void destroy() {
 		try {
 			executor.shutdownNow();
@@ -163,5 +165,5 @@
 	}
 
-	@Override public void paint(Graphics g, final MapView mv) {
+	@Override public void paint(Graphics2D g, final MapView mv, Bounds bounds) {
 		if(baseURL == null) return;
 		if (usesInvalidUrl && !isInvalidUrlConfirmed) return;
@@ -191,5 +193,5 @@
 				        + "This is likely to lead to invalid WMS request. You should check your<br>"
 				        + "preference settings.<br>"
-				        + "Do you want to fetch WMS tiles anyway?",				        
+				        + "Do you want to fetch WMS tiles anyway?",
 				        url);
 		String [] options = new String[] {
@@ -198,10 +200,10 @@
 		};
 		int ret = JOptionPane.showOptionDialog(
-				Main.parent, 
+				Main.parent,
 				msg,
 				tr("Invalid URL?"),
-				JOptionPane.YES_NO_OPTION, 
-				JOptionPane.WARNING_MESSAGE, 
-				null, 
+				JOptionPane.YES_NO_OPTION,
+				JOptionPane.WARNING_MESSAGE,
+				null,
 				options, options[1]
 		);
@@ -228,6 +230,6 @@
 			);
 			return;
-		}		
-		
+		}
+
 		for(int x = bminx; x<bmaxx; ++x) {
 			for(int y = bminy; y<bmaxy; ++y){
@@ -352,5 +354,5 @@
 		}
 	}
-	
+
 	public class SaveWmsAction extends AbstractAction {
 		public SaveWmsAction() {
