summaryrefslogtreecommitdiffstats
path: root/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/LectureDetailsWindowLayout.java
diff options
context:
space:
mode:
authorStephan Schwär2021-04-23 11:51:12 +0200
committerStephan Schwär2021-04-23 11:51:12 +0200
commitef289359d4e958f1e5bc4f67e633f8e73138c6ec (patch)
tree5f2340a72d2d8b18f7d5ec7d699fc1f5bb63ff60 /dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/LectureDetailsWindowLayout.java
parent[client] Wording (diff)
downloadtutor-module-ef289359d4e958f1e5bc4f67e633f8e73138c6ec.tar.gz
tutor-module-ef289359d4e958f1e5bc4f67e633f8e73138c6ec.tar.xz
tutor-module-ef289359d4e958f1e5bc4f67e633f8e73138c6ec.zip
[client] Revert decription fields to JTextArea
Diffstat (limited to 'dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/LectureDetailsWindowLayout.java')
-rw-r--r--dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/LectureDetailsWindowLayout.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/LectureDetailsWindowLayout.java b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/LectureDetailsWindowLayout.java
index 2b134ba0..3876e7fb 100644
--- a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/LectureDetailsWindowLayout.java
+++ b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/LectureDetailsWindowLayout.java
@@ -14,12 +14,12 @@ import javax.swing.BoxLayout;
import javax.swing.JButton;
import javax.swing.JCheckBox;
import javax.swing.JDialog;
-import javax.swing.JEditorPane;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JSpinner;
import javax.swing.JTabbedPane;
+import javax.swing.JTextArea;
import javax.swing.JTextField;
import javax.swing.SpinnerDateModel;
import javax.swing.text.DateFormatter;
@@ -56,7 +56,7 @@ public abstract class LectureDetailsWindowLayout extends JDialog {
// stuff ending in '...Info' are supposed to be the read-only labels for the information tab
protected final QLabel lblTitleInfo;
protected final JTextField txtTitle;
- protected final JEditorPane txtDescription;
+ protected final JTextArea txtDescription;
protected final QLabel lblImageNameInfo;
protected final QLabel txtImageName;
protected final JButton btnLinkImage;
@@ -181,7 +181,9 @@ public abstract class LectureDetailsWindowLayout extends JDialog {
grdGeneral.nextRow();
// description
- txtDescription = new JEditorPane();
+ txtDescription = new JTextArea();
+ txtDescription.setLineWrap(true);
+ txtDescription.setWrapStyleWord(true);
grdGeneral.add(new QLabel(I18n.WINDOW_LAYOUT.getString("LectureDetails.Label.description.text"))).anchor(GridBagConstraints.FIRST_LINE_START);
JScrollPane jsp = new JScrollPane(txtDescription, JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,
JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);