如果是做的网页用HTML的MAP标签就解决问题了

解决方案 »

  1.   

    使用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--------------------------------------------------------------------------------
      

  2.   

    或者建几个不可见的JBUTTON然后在用一张大的背景···
    即  透明的按钮