Replace TextFlow with RichTextFX CodeArea

This commit is contained in:
2021-02-17 15:40:50 +01:00
parent 45e3e914e8
commit 3f591b07e0
3 changed files with 18 additions and 10 deletions

View File

@@ -13,6 +13,8 @@
<?import javafx.scene.layout.AnchorPane?>
<?import javafx.scene.layout.BorderPane?>
<?import javafx.scene.text.TextFlow?>
<?import org.fxmisc.flowless.VirtualizedScrollPane?>
<?import org.fxmisc.richtext.CodeArea?>
<BorderPane
prefWidth="600"
@@ -59,21 +61,18 @@
</ScrollPane>
<!-- Editor -->
<ScrollPane>
<content>
<TextFlow
id="editor"
prefHeight="${editor.parent.height}"
prefWidth="${editor.parent.width}"/>
</content>
</ScrollPane>
<VirtualizedScrollPane>
<content>
<CodeArea fx:id="editor"/>
</content>
</VirtualizedScrollPane>
</items>
</SplitPane>
</center>
<bottom>
<HBox id="modeline" prefHeight="25.0">
<HBox fx:id="modeline" prefHeight="25.0">
<Label text="Modeline :)"/>
</HBox>
</bottom>