(MouseEvent e)
| 470 | } |
| 471 | |
| 472 | public void mouseMoved (MouseEvent e) { |
| 473 | int x=e.getX(), y=e.getY(); |
| 474 | if(y<=iRowHeight) { |
| 475 | int xb=x; |
| 476 | x=x+iX-iGridWidth; |
| 477 | int i=iColCount-1; |
| 478 | for(;i>=0;i--) { |
| 479 | if(x>-7 && x<7) break; |
| 480 | x+=iColWidth[i]; |
| 481 | } |
| 482 | if(i>=0) { |
| 483 | if(!bDrag) { |
| 484 | setCursor(resizeCursor); |
| 485 | bDrag=true; |
| 486 | iXDrag=xb-iColWidth[i]; |
| 487 | iColDrag=i; |
| 488 | } |
| 489 | return; |
| 490 | } |
| 491 | } |
| 492 | if(bDrag) { |
| 493 | setCursor(defaultCursor); |
| 494 | bDrag=false; |
| 495 | } |
| 496 | } |
| 497 | |
| 498 | public void mouseDragged (MouseEvent e) { |
| 499 | if (e.isPopupTrigger() || e.isMetaDown()) |