From: Brett L. <wak...@ea...> - 2005-09-25 17:22:12
|
> I don't know if you find this idea worth further pursueing, > but if so, I must say that there seems to be much more to > mouse handling than meets the eye..... It's an interesting idea. I'm not sure how useful it will be to anyone other than us developers. One other way to try it is to change Mouse*Listener to Action Listener and combine the rotation code with the tooltip code into a single ActionEvent. I think the other thing you'll have to do is adjust the Paint() and/or Repaint() methods to redraw the area under the mouse. Rather than drawing the whole map again, you could getRectClip() (a rectangular clipping area) and only repaint the hexes included in the clipping area. I agree with you, there's a lot more to Java's GUI system than meets the eye. ---Brett. |