https://github.com/andy-goryachev/fxeditor
JavaFX rich text editor able to handle billions of lines (WORK IN PROGRESS)
https://github.com/andy-goryachev/fxeditor
handle-billions java javafx javafx-components javafx-desktop-apps javafx-gui
Last synced: 15 days ago
JSON representation
JavaFX rich text editor able to handle billions of lines (WORK IN PROGRESS)
- Host: GitHub
- URL: https://github.com/andy-goryachev/fxeditor
- Owner: andy-goryachev
- License: apache-2.0
- Created: 2016-11-26T05:07:59.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2025-03-20T15:42:32.000Z (about 1 month ago)
- Last Synced: 2025-04-10T03:54:29.478Z (15 days ago)
- Topics: handle-billions, java, javafx, javafx-components, javafx-desktop-apps, javafx-gui
- Language: Java
- Homepage:
- Size: 4.4 MB
- Stars: 33
- Watchers: 4
- Forks: 10
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# FxEditor
## Announcement
> [!WARNING]
> This project has been archived.Please consider switching to
[RichTextArea](https://github.com/andy-goryachev-oracle/Test/blob/main/doc/RichTextArea/RichTextArea.md)
incubator module in JavaFX 24- [RichTextArea.md](https://github.com/andy-goryachev-oracle/Test/blob/main/doc/RichTextArea/RichTextArea.md)
- [JDK-8301121](https://bugs.openjdk.org/browse/JDK-8301121)
- [RichTextArea.java](https://github.com/openjdk/jfx/blob/master/modules/jfx.incubator.richtext/src/main/java/jfx/incubator/scene/control/richtext/RichTextArea.java)## Why ##

Nearly all Java text editors, Swing and FX alike, suffer from one deficiency: inability to work with large
data models, such as logs or query results.The goal of this project is to provide a professional FX text component that is capable of handling billions of
lines, provides syntax highlighting, multiple carets and multiple selection, rich text capabilities,
embedded images and embedded components.The main idea which allows for all these features is separation of the editor and underlying data model.
The data model then can be made as simple as a contiguous in-memory byte array, or as complex as memory-mapped
file with a concurrent change log that enables editing of a very large files.## Features
* supports up to 2^31 lines of text
* multiple selection and carets
* supports syntax highlight## Requirements
Requires JavaFX 21+.
## Try It Out ##
The project is at a very early stage: less than 29% of all
[identified features](https://github.com/andy-goryachev/FxEditor/blob/master/FxEditor%20Feature%20Matrix.xlsx)
is currently implemented.To see how little is implemented, launch
[FxEditorApp.java](https://github.com/andy-goryachev/FxEditor/blob/master/src/demo/edit/FxEditorApp.java)## Example
```java
public class MainWindow extends FxWindow
{
public MainWindow()
{
super("TestFxEditorWindow");
setTitle("FxEditor Demo");
setSize(600, 700);
// data model
FxEditorModel m = new TestFxColorEditorModel();
// editor component is a Pane
FxEditor ed = new FxEditor(m);
ed.setMultipleSelectionEnabled(true);
// add to layout
setCenter(ed);
}
}
```See [MainWindow.java](https://github.com/andy-goryachev/FxEditor/blob/master/src/demo/edit/MainWindow.java)
## Similar Projects
- Tomas Mikula's [RichTextFX](https://github.com/TomasMikula/RichTextFX)
- Gluon's [Rich Text Area Project](https://github.com/gluonhq/rich-text-area)## License
This project and its source code is licensed under the [Apache License 2.0](http://www.apache.org/licenses/LICENSE-2.0) and you should feel free to make adaptations of this work. Please see the included LICENSE file for further details.