VISTALL / jsyntaxpane

Automatically exported from code.google.com/p/jsyntaxpane
0 stars 0 forks source link

SyntaxView sometimes uses black instead of default color #18

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Change the TokenType.DEFAULT color to Color.ORANGE in SyntaxStyles
2. Start SyntaxTester
3. Type @ (it will be orange)
3. Type ! (now the string "@!" will be black)

What is the expected output? What do you see instead?

Expect the string "@!" to use the default color (orange).

Please use labels and text to provide additional information.

SyntaxView:56
graphics.setColor(Color.BLACK);

should be 

SyntaxStyles.getInstance().setGraphicsStyle(graphics, TokenType.DEFAULT);

Original issue reported on code.google.com by javlo...@gmail.com on 9 Aug 2008 at 4:28

GoogleCodeExporter commented 9 years ago
Thanks for the fix.  I'll add it to the next released version...

Original comment by ayman.al...@gmail.com on 12 Aug 2008 at 6:28

GoogleCodeExporter commented 9 years ago
Fix in r28

Original comment by ayman.al...@gmail.com on 12 Aug 2008 at 6:34