使用MouseEvent.getPoint()取得相对位置,根据位置不同来执行不同的操作 public Point getPoint() Returns the x,y position of the event relative to the source component. Returns: a Point object containing the x and y coordinates relative to the source component--------------------------------------------------------------------------------
public Point getPoint()
Returns the x,y position of the event relative to the source component.
Returns:
a Point object containing the x and y coordinates relative to the source component--------------------------------------------------------------------------------
即 透明的按钮