• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Trouble with JEditorPane changing colors with styles

 
Magno Ritzmann
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm using Styles to change the color of my reserved words, but it´s changing incorrectly, it´s changing right when I type in the first line but in the next lines only part of the word is changed, what is wrong with my code??

the problem!


Uploaded with ImageShack.us


this is the code ->



Thanks for any help!
 
Darryl Burke
Bartender
Posts: 5148
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Learn about Text and New Lines from Rob Camick.
 
Magno Ritzmann
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, it worked completely!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic