Index: src/org/openstreetmap/josm/gui/PreferenceDialog.java
===================================================================
--- src/org/openstreetmap/josm/gui/PreferenceDialog.java	(revision 6)
+++ src/org/openstreetmap/josm/gui/PreferenceDialog.java	(revision 11)
@@ -43,5 +43,5 @@
 	class OkAction extends AbstractAction {
 		public OkAction() {
-			super("Ok", new ImageIcon("images/ok.png"));
+			super("Ok", new ImageIcon(Main.class.getResource("/images/ok.png")));
 			putValue(MNEMONIC_KEY, KeyEvent.VK_ENTER);
 		}
