I am having trouble getting my MapHex (extends JLabel) to redraw itself properly. At the moment, each map hex only redraws as red when the tool text tip object moves off the hex that should have changed colour when the cursor entered or exited the map hex.
The map hexes are displayed within MapPanel (extends JPanel).
posted 11 years ago
Call repaint to show the new state:
Also, you might consider overriding paintComponent in MapHex instead of paint.