diff options
Diffstat (limited to 'dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/ImageDetailsWindowLayout.java')
-rw-r--r-- | dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/ImageDetailsWindowLayout.java | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/ImageDetailsWindowLayout.java b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/ImageDetailsWindowLayout.java index af73d32f..4d141c18 100644 --- a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/ImageDetailsWindowLayout.java +++ b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/ImageDetailsWindowLayout.java @@ -7,7 +7,6 @@ import javax.swing.Box; import javax.swing.BoxLayout; import javax.swing.JButton; import javax.swing.JCheckBox; -import javax.swing.JComboBox; import javax.swing.JDialog; import javax.swing.JEditorPane; import javax.swing.JFrame; @@ -17,8 +16,6 @@ import javax.swing.JScrollPane; import javax.swing.JTabbedPane; import javax.swing.JTextArea; import javax.swing.JTextField; -import javax.swing.text.StyledEditorKit; -import javax.swing.text.html.HTMLEditorKit; import org.openslx.bwlp.thrift.iface.OperatingSystem; import org.openslx.bwlp.thrift.iface.ShareMode; @@ -87,14 +84,6 @@ import java.awt.*; protected final ImageVersionTable tblVersions; protected final QScrollPane scpVersions; - 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; protected JTabbedPane pnlTabs; protected ImagePermissionConfigurator ctlImagePermissionConfigurator; @@ -121,50 +110,8 @@ import java.awt.*; grid.add(txtTitle, 3).expand(true, false).fill(true, false); grid.nextRow(); - // buttons for text editing - JPanel editingPanel = new JPanel(); - - editingPanel.setLayout(new FlowLayout(FlowLayout.LEADING)); - JPanel emptyPanel = new JPanel(); - grid.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); - - grid.add(editingPanel).expand(false, true); - - emptyPanel.setLayout(new FlowLayout()); - btnWysiwyg = new JButton("HTML"); - btnWysiwyg.setPreferredSize(new Dimension(100,25)); - emptyPanel.add(btnWysiwyg); - - grid.add(emptyPanel); - grid.nextRow(); - // description txtDescription = new JEditorPane(); - kit = new HTMLEditorKit(); - txtDescription.setEditorKit(kit); - txtDescription.setContentType("text/html"); grid.add(new QLabel(I18n.WINDOW_LAYOUT.getString("ImageDetails.Label.description.text"))).anchor = GridBagConstraints.FIRST_LINE_START; JScrollPane jsp = new JScrollPane(txtDescription, JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED, |