Solved

JAVA TEXT EDITOR NETBEANS

Posted on 2011-02-11
3
890 Views
Last Modified: 2012-05-11
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
Comment
Question by:rockas1982
3 Comments
 
LVL 9

Expert Comment

by:rawinnlnx9
ID: 34874945
So what is it that you need?
0
 
LVL 1

Author Comment

by:rockas1982
ID: 34874970
an example project (netbeans) of this (if someone has one allready created) or something near to this
0
 
LVL 5

Accepted Solution

by:
aciuica earned 500 total points
ID: 34875278
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Jaspersoft Studio is a plugin for Eclipse that lets you create reports from a datasource.  In this article, we'll go over creating a report from a default template and setting up a datasource that connects to your database.
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now