建议楼主看看Java的调色板的原码。

解决方案 »

  1.   

    我的油箱[email protected],请发给我一份。
      

  2.   

    怎样获得鼠标当前点的屏幕坐标呢?
    这首先就是一个难题之后 就可以用
    java.awt.Robot
    获得指定位置的屏幕颜色了
      

  3.   

    这个问题太难啦
    看看他们讨论的结果吧
    http://expert.csdn.net/Expert/topic/1430/1430619.xml?temp=5.169314E-02
      

  4.   

    ((Component)MouseEvent.getSource()).getPointOnScreen().x+MouseEvent.getX()
      

  5.   

    sorry not getPointOnScreen but getLocationOnScreen()
      

  6.   

    shine333(shine):
      如果鼠标不在 frame 上又该如何呢?
      

  7.   

    it's very easy to get the current cursor position
      

  8.   

    据我所知MouseListener.mouseDragged(MouseEvent)只要是在控件内开始,无论在哪儿都会触发
      

  9.   

    to shine333(shine):
      That's perfect !
      

  10.   

    nako_ruru(娜可露露):
      That's impossible !