阅读背景:

MouseListener MouseDragged无法按预期工作

来源:互联网 

I have a grid where the boxes become red (I basically want to paint the grid) when I left click, hold and move the cursor on them (i.e: drag mouse). I have the code below. When I do the mouse dragging. The MouseDragged method is called properly however only one box becomes red and nothing happens while I drag after that (although the method is still called). Any ideas ? Hope I was clear. ThanksI have a grid where the boxes become red (I bas




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: