Possible Duplicate:
What components should I use for building a Java WYSIWYG HTML editor
I’m a total newbie in Java programming. I have to do text editor in Swing/AWT and I have one question about it. How can I edit one selected word, for example change its color? Which component and which functions should I use?
For a beginner to Java Swing, try to keep this project simple. To show multiple colors and multiple sizes in the same document requires a lot of complex coding and rendering html.
Try to just provide the basic copy,cut,paste features because they are easier to implement.
To provide those features, a JTextArea is sufficient.
Try this. It’s a pretty simple text editor