Index: /applications/editors/josm/plugins/smed2/build.xml
===================================================================
--- /applications/editors/josm/plugins/smed2/build.xml	(revision 28721)
+++ /applications/editors/josm/plugins/smed2/build.xml	(revision 28722)
@@ -71,4 +71,7 @@
         <copy todir="${plugin.build.dir}/resources">
             <fileset dir="resources"/>
+        </copy>
+        <copy todir="${plugin.build.dir}/images">
+            <fileset dir="${plugin.src.dir}/images"/>
         </copy>
         <copy todir="${plugin.build.dir}/images">
Index: /applications/editors/josm/plugins/smed2/src/S57/S57dat.java
===================================================================
--- /applications/editors/josm/plugins/smed2/src/S57/S57dat.java	(revision 28722)
+++ /applications/editors/josm/plugins/smed2/src/S57/S57dat.java	(revision 28722)
@@ -0,0 +1,18 @@
+package S57;
+
+import java.io.File;
+
+import S57.S57obj;
+import S57.S57att;
+import S57.S57val;
+
+public class S57dat {
+	
+	private class LRleader {
+		public int rlen;
+	}
+
+	public S57dat(File file) {
+		
+	}
+}
Index: /applications/editors/josm/plugins/smed2/src/S57/S57obj.java
===================================================================
--- /applications/editors/josm/plugins/smed2/src/S57/S57obj.java	(revision 28721)
+++ /applications/editors/josm/plugins/smed2/src/S57/S57obj.java	(revision 28722)
@@ -79,5 +79,5 @@
 	private static final EnumMap<Obj, String> ObjSTR = new EnumMap<Obj, String>(Obj.class);
 	static {
-		ObjSTR.put(Obj.UNKOBJ, "");	ObjSTR.put(Obj.ADMARE, "administration");	ObjSTR.put(Obj.AIRARE, "airfield");	ObjSTR.put(Obj.ACHBRT, "anchor_berth");
+		ObjSTR.put(Obj.UNKOBJ, "");	ObjSTR.put(Obj.ADMARE, "administrative_area");	ObjSTR.put(Obj.AIRARE, "airfield");	ObjSTR.put(Obj.ACHBRT, "anchor_berth");
 		ObjSTR.put(Obj.ACHARE, "anchorage"); ObjSTR.put(Obj.BCNCAR, "beacon_cardinal");	ObjSTR.put(Obj.BCNISD, "beacon_isolated_danger");
 		ObjSTR.put(Obj.BCNLAT, "beacon_lateral");	ObjSTR.put(Obj.BCNSAW, "beacon_safe_water"); ObjSTR.put(Obj.BCNSPP, "beacon_special_purpose");
Index: /applications/editors/josm/plugins/smed2/src/S57/S57val.java
===================================================================
--- /applications/editors/josm/plugins/smed2/src/S57/S57val.java	(revision 28721)
+++ /applications/editors/josm/plugins/smed2/src/S57/S57val.java	(revision 28722)
@@ -62,5 +62,5 @@
 	private static final EnumMap<CatACH, S57enum> Catach = new EnumMap<CatACH, S57enum>(CatACH.class); static {Catach.put(CatACH.ACH_UNKN, new S57enum(0, ""));
 		Catach.put(CatACH.ACH_UNRD, new S57enum(1, "unrestricted")); Catach.put(CatACH.ACH_DEEP, new S57enum(2, "deep_water")); Catach.put(CatACH.ACH_TANK, new S57enum(3, "tanker"));
-		Catach.put(CatACH.ACH_EXPL, new S57enum(4, "explosives")); Catach.put(CatACH.ACH_QUAR, new S57enum(5, "quarantine")); Catach.put(CatACH.ACH_SEAP, new S57enum(6, "sea-plane"));
+		Catach.put(CatACH.ACH_EXPL, new S57enum(4, "explosives")); Catach.put(CatACH.ACH_QUAR, new S57enum(5, "quarantine")); Catach.put(CatACH.ACH_SEAP, new S57enum(6, "seaplane"));
 		Catach.put(CatACH.ACH_SMCF, new S57enum(7, "small_craft")); Catach.put(CatACH.ACH_SMCM, new S57enum(8, "small_craft_mooring")); Catach.put(CatACH.ACH_H24P, new S57enum(9, "24_hour"));
 		Catach.put(CatACH.ACH_LTPD, new S57enum(10, "limited_period")); Catach.put(CatACH.ACH_NPSH, new S57enum(11, "non_pushing")); Catach.put(CatACH.ACH_DRYC, new S57enum(12, "dry_cargo"));
Index: /applications/editors/josm/plugins/smed2/src/images/fileButton.svg
===================================================================
--- /applications/editors/josm/plugins/smed2/src/images/fileButton.svg	(revision 28722)
+++ /applications/editors/josm/plugins/smed2/src/images/fileButton.svg	(revision 28722)
@@ -0,0 +1,8 @@
+<svg
+   xmlns="http://www.w3.org/2000/svg"
+   version="1.1"
+   width="20"
+   height="20">
+    	<path	d="M 4,16 L 16,16 L 18,14 L 18,8 L 16,6 L 10,6 L 8,4 L 4,4 L 2,6 L 2,14 z"
+    	 stroke="#000000" stroke-width="1" fill="#ffd400"/>
+</svg>
Index: /applications/editors/josm/plugins/smed2/src/panels/PanelMain.java
===================================================================
--- /applications/editors/josm/plugins/smed2/src/panels/PanelMain.java	(revision 28721)
+++ /applications/editors/josm/plugins/smed2/src/panels/PanelMain.java	(revision 28722)
@@ -7,6 +7,11 @@
 import java.awt.Rectangle;
 import java.awt.event.ActionListener;
+import java.io.File;
 
 import javax.swing.*;
+
+import org.openstreetmap.josm.Main;
+
+import S57.S57dat;
 
 public class PanelMain extends JPanel {
@@ -21,4 +26,17 @@
 		public void actionPerformed(java.awt.event.ActionEvent e) {
 //			item.saveSign(???);
+		}
+	};
+	public JButton openButton = null;
+	final JFileChooser fc = new JFileChooser();
+	private ActionListener alOpen = new ActionListener() {
+		public void actionPerformed(java.awt.event.ActionEvent e) {
+			if (e.getSource() == openButton) {
+        int returnVal = fc.showOpenDialog(Main.parent);
+        if (returnVal == JFileChooser.APPROVE_OPTION) {
+            new S57dat(fc.getSelectedFile());
+            messageBar.setText("Opening file");
+        }
+      }
 		}
 	};
@@ -37,8 +55,12 @@
 		
     messageBar = new JTextField();
-    messageBar.setBounds(new Rectangle(10, 430, 350, 20));
+    messageBar.setBounds(new Rectangle(40, 430, 320, 20));
     messageBar.setEditable(false);
     messageBar.setBackground(Color.WHITE);
     add(messageBar);
+		openButton = new JButton(new ImageIcon(getClass().getResource("/images/fileButton.png")));
+		openButton.setBounds(new Rectangle(10, 430, 20, 20));
+		add(openButton);
+		openButton.addActionListener(alOpen);
 		saveButton = new JButton();
 		saveButton.setBounds(new Rectangle(370, 430, 100, 20));
Index: /applications/editors/josm/plugins/smed2/src/smed2/Smed2Action.java
===================================================================
--- /applications/editors/josm/plugins/smed2/src/smed2/Smed2Action.java	(revision 28721)
+++ /applications/editors/josm/plugins/smed2/src/smed2/Smed2Action.java	(revision 28722)
@@ -1,4 +1,5 @@
 package smed2;
 
+import java.awt.Dialog;
 import java.awt.Dimension;
 import java.awt.event.ActionEvent;
@@ -52,4 +53,6 @@
 		});
 		frame.setSize(new Dimension(480, 480));
+		frame.setLocation(100, 200);
+		frame.setAlwaysOnTop(true);
 		frame.setVisible(true);
 		panelMain = new PanelMain();
