diff options
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.java | 55 |
1 files changed, 0 insertions, 55 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 3a100edb..6abdfc47 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 @@ -115,15 +115,6 @@ public abstract class LectureDetailsWindowLayout extends JDialog { protected final JPanel pnlTabNetshare; protected final JPanel pnlTabLdapFilter; - protected final JButton btnBold; - protected final JButton btnItalic; - protected final JButton btnUnderline; - protected final JButton btnWysiwyg; - - protected final JComboBox cbTxtSize; - protected final JComboBox cbTxtColor; - protected final HTMLEditorKit kit; - public LectureDetailsWindowLayout(Frame modalParent) { super(modalParent, I18n.WINDOW_LAYOUT.getString("LectureDetails.Dialog.title"), ModalityType.APPLICATION_MODAL); @@ -192,55 +183,9 @@ public abstract class LectureDetailsWindowLayout extends JDialog { grdGeneral.add(new QLabel(I18n.WINDOW_LAYOUT.getString("LectureDetails.Label.title.text"))); grdGeneral.add(txtTitle, 4).expand(true, false).fill(true, false); grdGeneral.nextRow(); - - // buttons for text editing - JPanel editingPanel = new JPanel(); - - editingPanel.setLayout(new FlowLayout(FlowLayout.LEADING)); - JPanel emptyPanel = new JPanel(); - grdGeneral.add(emptyPanel); - btnBold = new JButton(new StyledEditorKit.BoldAction()); - btnBold.setIcon(Gui.getScaledIconResource("/img/bold.png", "B", 15, this)); - btnBold.setText(""); - btnItalic = new JButton(new StyledEditorKit.ItalicAction()); - btnItalic.setIcon(Gui.getScaledIconResource("/img/italic.png", "B", 15, this)); - btnItalic.setText(""); - btnUnderline = new JButton(new StyledEditorKit.UnderlineAction()); - btnUnderline.setIcon(Gui.getScaledIconResource("/img/underline.png", "B", 15, this)); - btnUnderline.setText(""); - editingPanel.add(btnBold); - editingPanel.add(btnItalic); - editingPanel.add(btnUnderline); - - String[] textsizes = {"10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29"}; - cbTxtSize = new JComboBox<>(textsizes); - cbTxtSize.setPreferredSize(new Dimension(65,25)); - editingPanel.add(cbTxtSize); - - Object[] colors = {"Black", "Blue", "Red", "Yellow", "Green"}; - cbTxtColor = new JComboBox<>(colors); - cbTxtColor.setPreferredSize(new Dimension(100,25)); - editingPanel.add(cbTxtColor); - - grdGeneral.add(editingPanel); - - - emptyPanel.setLayout(new FlowLayout()); - btnWysiwyg = new JButton("HTML"); - btnWysiwyg.setPreferredSize(new Dimension(100,25)); - emptyPanel.add(btnWysiwyg); - - grdGeneral.add(emptyPanel); - grdGeneral.add(new JPanel()); - grdGeneral.add(new JPanel()); - - grdGeneral.nextRow(); // description txtDescription = new JEditorPane(); - kit = new HTMLEditorKit(); - txtDescription.setEditorKit(kit); - txtDescription.setContentType("text/html"); 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); |