From 57b53fc267aa606ee4d1bde5512632c82cbab9c5 Mon Sep 17 00:00:00 2001 From: jeff Date: Sat, 20 Sep 2014 21:44:50 -0400 Subject: added token highlighting for things outside of the jar --- src/cuchaz/enigma/gui/BoxHighlightPainter.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/cuchaz/enigma/gui/BoxHighlightPainter.java') diff --git a/src/cuchaz/enigma/gui/BoxHighlightPainter.java b/src/cuchaz/enigma/gui/BoxHighlightPainter.java index 30b2b02..df63f5a 100644 --- a/src/cuchaz/enigma/gui/BoxHighlightPainter.java +++ b/src/cuchaz/enigma/gui/BoxHighlightPainter.java @@ -36,8 +36,11 @@ public abstract class BoxHighlightPainter implements Highlighter.HighlightPainte Rectangle bounds = getBounds( text, start, end ); // fill the area - g.setColor( m_fillColor ); - g.fillRoundRect( bounds.x, bounds.y, bounds.width, bounds.height, 4, 4 ); + if( m_fillColor != null ) + { + g.setColor( m_fillColor ); + g.fillRoundRect( bounds.x, bounds.y, bounds.width, bounds.height, 4, 4 ); + } // draw a box around the area g.setColor( m_borderColor ); -- cgit v1.2.3