Results 1 to 5 of 5
  1. #1
    jperson is offline Member
    Join Date
    Jan 2010
    Posts
    61
    Rep Power
    0

    Default SQL syntax coloring

    I'm in the way to finish SQL editor but i want to know is there any java lib to color SQL statement syntax ??

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    25

    Default

    I'm no pro at this, but I think that the answer will depend on several unknowns including which library or libraries you're using to create your editor with. Are you using Swing? What are you using for the "word-processing" window? A Swing component? etc...

  3. #3
    jperson is offline Member
    Join Date
    Jan 2010
    Posts
    61
    Rep Power
    0

    Default

    Fubarable thank u for your reply,,

    yes i'm using Swing component (JTextPane) .

  4. #4
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    25

    Default

    This is getting out of my area of journeyman knowledge, but if using a JTextPane, you're using a StyledDocument, correct? Have you set the character attributes on the document to change color?

  5. #5
    jperson is offline Member
    Join Date
    Jan 2010
    Posts
    61
    Rep Power
    0

    Default

    I found this library -> Syntax highlighting for over 25 programming languages ....

    RSyntaxTextArea | Fifesoft

Similar Threads

  1. Syntax question
    By rockeater in forum New To Java
    Replies: 3
    Last Post: 08-31-2010, 11:52 PM
  2. Coloring an image
    By Cassidy in forum Java 2D
    Replies: 4
    Last Post: 05-31-2010, 09:09 PM
  3. Coloring JTable cells
    By ProgrammingPup in forum Advanced Java
    Replies: 2
    Last Post: 11-04-2009, 10:57 PM
  4. Coloring an image
    By Twitchy5 in forum AWT / Swing
    Replies: 19
    Last Post: 09-12-2009, 03:44 PM
  5. Replies: 0
    Last Post: 07-25-2008, 02:31 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •