The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
February 2001

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

swing - syntax color in editor text

Posted by Andy Gombos on February 16, 2001 at 4:22 PM

> how make program to have a syntax color in an editor text made with Java ?


You can search the java.sun.com website. They have an editorkit for download that
can color certain words in a JEditorPane or JTextPane. If you want to use a JTextPane,
you cannot. There is no way besides extending it and adding the nessesary code that you
can use JTextArea.

Andy




Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us