Hi Maged, Have u tried using TextPane It's made for that only :-) As Cindy said u can develop subclass of JTextArea also for the same reason. In my opinion, if the requirement is full fledged Word Processor then use JTextPane or if a simple developer's editor (syntax highlighting etc..) is to be developed then subclass JTextArea's ui BasicTextAreaUI and create ur own custom View which extends PlainView in create(Element) method. Just see the source code of PlainView class, the rest is fairly simple.
The best teams have no specialists, only general contributors with special skills
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com