日期:2014-05-20  浏览次数:20667 次

[Java][Swing]可以开发多点触摸桌面程序吗?win7系统下
JDK6支持吗?了解的java多点触摸开发的来说下,用swing可行吗,或者其它技术也行。
------解决方案--------------------
Swing暂时没有这么先进吧,用WPF的MultiTouch 吧。
------解决方案--------------------
你可以使用JavaFX 2.2


引用
                    javafx.scene.input.TouchEvent

    All Implemented Interfaces:
        java.io.Serializable, java.lang.Cloneable


    public final class TouchEvent
    extends InputEvent

    Touch event indicates a touch screen action. It contains detailed information about each particular touch point.

    Touch point represents a single touched finger and has its location, state (pressed/moved/released/stationary) and an ID unique in scope of a single gesture. For detailed reference see TouchPoint.

    For each multi-touch action a set of touch events is generated - for each touch point one. The event has type corresponds to its touch point's state. Each of the events also contain list of all the touch points. This design allows for handling complicated multi-touch actions from one place while keeping it possible to filter/consume each touch point separately. To recognize which events belong into a single set there is getEventSetId() method.