@@ -0,0 +1,1325 @@
+package frontend;%0A%0Aimport javax.swing.JScrollPane;%0Aimport javax.swing.JTextPane;%0Aimport javax.swing.ScrollPaneConstants;%0Aimport javax.swing.SwingUtilities;%0A%0Aimport javafx.embed.swing.SwingNode;%0Aimport javafx.scene.text.Font;%0Aimport javafx.scene.text.FontWeight;%0Aimport text_handler.FontManager;%0A%0A%0A%0Apublic class Editor extends SwingNode %7B%0A%09%0A%09private JTextPane%09textPane;%0A%09private JScrollPane%09scrollPane;%0A%09%0A%09%0A%09%0A%09public Editor() %7B%0A%09%09%0A%09%09createSwingContent();%0A%09%09%0A%09%7D%0A%09%0A%09%0A%09%0A%09private void createSwingContent() %7B%0A%09%09%0A%09%09SwingUtilities.invokeLater(() -%3E %7B%0A%09%09%09%0A%09%09%09textPane = new JTextPane();%0A%09%09%09%0A%09%09%09scrollPane = new JScrollPane(textPane, ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS, ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS);%0A%09%09%09scrollPane.getHorizontalScrollBar().setVisible(true);%0A%09%09%09scrollPane.setSize(400, 400);%0A%09%09%09%0A%09%09%09// Set default Font%0A%09%09%09this.setFont(FontManager.FONT_DEFAULT, FontWeight.NORMAL);%0A%09%09%09this.setContent(textPane);%0A%09%09%7D);%0A%09%09%0A%09%7D%0A%09%0A%09%0A%09%0A%09public void setEditable(boolean editable) %7B%0A%09%09%0A%09%09textPane.setEditable(editable);%0A%09%7D%0A%09%0A%09%0A%09%0A%09public boolean getEditable() %7B%0A%09%09%0A%09%09return textPane.isEditable();%0A%09%7D%0A%09%0A%09%0A%09%0A%09public void setFont(Font font, FontWeight weight) %7B%0A%09%09%0A%09%09textPane.setFont(FontManager.getAWTFont(font, weight));%0A%09%7D%0A%09%0A%09%0A%09%0A%09public Font getFont() %7B%0A%09%09%0A%09%09return FontManager.getFxFont(textPane.getFont());%0A%09%7D%0A%09%0A%7D%0A

Add text display are