Index: applications/editors/josm/plugins/geochat/src/geochat/ChatMessage.java
===================================================================
--- applications/editors/josm/plugins/geochat/src/geochat/ChatMessage.java	(revision 29583)
+++ applications/editors/josm/plugins/geochat/src/geochat/ChatMessage.java	(revision 29584)
@@ -1,2 +1,3 @@
+// License: WTFPL
 package geochat;
 
Index: applications/editors/josm/plugins/geochat/src/geochat/ChatPaneManager.java
===================================================================
--- applications/editors/josm/plugins/geochat/src/geochat/ChatPaneManager.java	(revision 29583)
+++ applications/editors/josm/plugins/geochat/src/geochat/ChatPaneManager.java	(revision 29584)
@@ -1,2 +1,3 @@
+// License: WTFPL
 package geochat;
 
Index: applications/editors/josm/plugins/geochat/src/geochat/ChatServerConnection.java
===================================================================
--- applications/editors/josm/plugins/geochat/src/geochat/ChatServerConnection.java	(revision 29583)
+++ applications/editors/josm/plugins/geochat/src/geochat/ChatServerConnection.java	(revision 29584)
@@ -1,2 +1,3 @@
+// License: WTFPL
 package geochat;
 
Index: applications/editors/josm/plugins/geochat/src/geochat/ChatServerConnectionListener.java
===================================================================
--- applications/editors/josm/plugins/geochat/src/geochat/ChatServerConnectionListener.java	(revision 29583)
+++ applications/editors/josm/plugins/geochat/src/geochat/ChatServerConnectionListener.java	(revision 29584)
@@ -1,2 +1,3 @@
+// License: WTFPL
 package geochat;
 
Index: applications/editors/josm/plugins/geochat/src/geochat/GeoChatPanel.java
===================================================================
--- applications/editors/josm/plugins/geochat/src/geochat/GeoChatPanel.java	(revision 29583)
+++ applications/editors/josm/plugins/geochat/src/geochat/GeoChatPanel.java	(revision 29584)
@@ -1,2 +1,3 @@
+// License: WTFPL
 package geochat;
 
Index: applications/editors/josm/plugins/geochat/src/geochat/GeoChatPlugin.java
===================================================================
--- applications/editors/josm/plugins/geochat/src/geochat/GeoChatPlugin.java	(revision 29583)
+++ applications/editors/josm/plugins/geochat/src/geochat/GeoChatPlugin.java	(revision 29584)
@@ -1,2 +1,3 @@
+// License: WTFPL
 package geochat;
 
Index: applications/editors/josm/plugins/geochat/src/geochat/GeoChatPopupAdapter.java
===================================================================
--- applications/editors/josm/plugins/geochat/src/geochat/GeoChatPopupAdapter.java	(revision 29583)
+++ applications/editors/josm/plugins/geochat/src/geochat/GeoChatPopupAdapter.java	(revision 29584)
@@ -1,2 +1,3 @@
+// License: WTFPL
 package geochat;
 
Index: applications/editors/josm/plugins/geochat/src/geochat/JPanelTextField.java
===================================================================
--- applications/editors/josm/plugins/geochat/src/geochat/JPanelTextField.java	(revision 29583)
+++ applications/editors/josm/plugins/geochat/src/geochat/JPanelTextField.java	(revision 29584)
@@ -1,2 +1,3 @@
+// License: WTFPL
 package geochat;
 
@@ -4,18 +5,37 @@
 import java.awt.event.KeyEvent;
 import java.util.*;
-import org.openstreetmap.josm.gui.widgets.JosmTextField;
-import javax.swing.KeyStroke;
+import javax.swing.*;
+import javax.swing.text.DefaultEditorKit;
 import org.openstreetmap.josm.Main;
+import org.openstreetmap.josm.gui.widgets.PopupMenuLauncher;
+import static org.openstreetmap.josm.tools.I18n.tr;
 
 /**
  * JTextField tweaked to work in a JOSM panel. It prevents unwanted keystrokes
  * to be caught by the editor.
- * 
+ *
  * @author zverik
  */
-public class JPanelTextField extends JosmTextField {
+public class JPanelTextField extends JTextField {
 
     public JPanelTextField() {
         setFocusTraversalKeys(KeyboardFocusManager.FORWARD_TRAVERSAL_KEYS, new HashSet<KeyStroke>());
+        PopupMenuLauncher launcher = new PopupMenuLauncher(createEditMenu());
+        addMouseListener(launcher);
+    }
+
+    private JPopupMenu createEditMenu() {
+        JPopupMenu menu = new JPopupMenu();
+        menu.add(createMenuItem(DefaultEditorKit.cutAction, tr("Cut")));
+        menu.add(createMenuItem(DefaultEditorKit.copyAction, tr("Copy")));
+        menu.add(createMenuItem(DefaultEditorKit.pasteAction, tr("Paste")));
+        menu.add(createMenuItem(DefaultEditorKit.selectAllAction, tr("Select All")));
+        return menu;
+    }
+
+    private JMenuItem createMenuItem( String action, String label ) {
+        JMenuItem item = new JMenuItem(getActionMap().get(action));
+        item.setText(label);
+        return item;
     }
 
Index: applications/editors/josm/plugins/geochat/src/geochat/JsonQueryCallback.java
===================================================================
--- applications/editors/josm/plugins/geochat/src/geochat/JsonQueryCallback.java	(revision 29583)
+++ applications/editors/josm/plugins/geochat/src/geochat/JsonQueryCallback.java	(revision 29584)
@@ -1,2 +1,3 @@
+// License: WTFPL
 package geochat;
 
Index: applications/editors/josm/plugins/geochat/src/geochat/JsonQueryUtil.java
===================================================================
--- applications/editors/josm/plugins/geochat/src/geochat/JsonQueryUtil.java	(revision 29583)
+++ applications/editors/josm/plugins/geochat/src/geochat/JsonQueryUtil.java	(revision 29584)
@@ -1,2 +1,3 @@
+// License: WTFPL
 package geochat;
 
