From dc4aaeda0aea2db89ba30375f59fbf3e0dc6bf34 Mon Sep 17 00:00:00 2001 From: uogau Date: Mon, 8 Mar 2021 01:36:43 +0100 Subject: [PATCH] set share dialog text fields to read only --- .../view/content/typeinferencecontent/ShareDialog.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/edu/kit/typicalc/view/content/typeinferencecontent/ShareDialog.java b/src/main/java/edu/kit/typicalc/view/content/typeinferencecontent/ShareDialog.java index 84e566b..65a5ae4 100644 --- a/src/main/java/edu/kit/typicalc/view/content/typeinferencecontent/ShareDialog.java +++ b/src/main/java/edu/kit/typicalc/view/content/typeinferencecontent/ShareDialog.java @@ -67,6 +67,10 @@ public class ShareDialog extends Dialog implements LocaleChangeObserver { latexArea.setClassName(FIELD_CLASS); UI.getCurrent().getPage().executeJs("window.autoSelect($0)", FIELD_CLASS); + urlField.setReadOnly(true); + packageArea.setReadOnly(true); + latexArea.setReadOnly(true); + layout.add(urlField, packageArea, latexArea); add(headingLayout, layout);