This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
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