[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1099
  • Last Modified:

JAVA TEXT EDITOR NETBEANS

I'm trying to create a simple text editor that can create / open / save  text file
format text for 3 colors
and in the status bar it will count the lines in the text the words and the characters
it can do something like spell checking for 10 words of our choice and since the
to be able to save the text as it appears [colors]


 
0
rockas1982
Asked:
rockas1982
1 Solution
 
rawinnlnx9Commented:
So what is it that you need?
0
 
rockas1982Author Commented:
an example project (netbeans) of this (if someone has one allready created) or something near to this
0
 
aciuicaCommented:
For a swing text editor I found this sample with some more formatting:
http://www.buraak.com/2008/03/19/simple-text-editor-with-java-swing/
The save/read use java Serialization. If you don't like that you can read the StyledDocument content and store it in your desired format and then build a StyledDocument from it when you open it.
For the status you can register a DocumentListener to the document and make some tokenizing and counting.
For spell checking you can use http://jortho.sourceforge.net/ as is or as source of inspiration for highlighting wrong spelled words and other stuff.
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now