diff options
| author | 2014-09-20 21:44:50 -0400 | |
|---|---|---|
| committer | 2014-09-20 21:44:50 -0400 | |
| commit | 57b53fc267aa606ee4d1bde5512632c82cbab9c5 (patch) | |
| tree | 19f94bdeaba5f3b178053135bce75144517fdada /src/cuchaz/enigma/gui/BoxHighlightPainter.java | |
| parent | avoid some unnecessary work with inner classes (diff) | |
| download | enigma-fork-57b53fc267aa606ee4d1bde5512632c82cbab9c5.tar.gz enigma-fork-57b53fc267aa606ee4d1bde5512632c82cbab9c5.tar.xz enigma-fork-57b53fc267aa606ee4d1bde5512632c82cbab9c5.zip | |
added token highlighting for things outside of the jar
Diffstat (limited to 'src/cuchaz/enigma/gui/BoxHighlightPainter.java')
| -rw-r--r-- | src/cuchaz/enigma/gui/BoxHighlightPainter.java | 7 |
1 files changed, 5 insertions, 2 deletions
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 | |||
| 36 | Rectangle bounds = getBounds( text, start, end ); | 36 | Rectangle bounds = getBounds( text, start, end ); |
| 37 | 37 | ||
| 38 | // fill the area | 38 | // fill the area |
| 39 | g.setColor( m_fillColor ); | 39 | if( m_fillColor != null ) |
| 40 | g.fillRoundRect( bounds.x, bounds.y, bounds.width, bounds.height, 4, 4 ); | 40 | { |
| 41 | g.setColor( m_fillColor ); | ||
| 42 | g.fillRoundRect( bounds.x, bounds.y, bounds.width, bounds.height, 4, 4 ); | ||
| 43 | } | ||
| 41 | 44 | ||
| 42 | // draw a box around the area | 45 | // draw a box around the area |
| 43 | g.setColor( m_borderColor ); | 46 | g.setColor( m_borderColor ); |