Is there a Java API for touching devices such as t

2020-02-03 11:59发布

问题:

I'm a java developer and I love this techonology. However, in my advisor next research we are going to use extensively touch-screen devices on Windows. This is a problem for me, because I'm used to programming on Linux and with Java.

The question is, is there an API for Java for touchscreen devices? If yes, is this API good/mature? The need for a Java API is not only because I love Java but because I don't know how to program specifically to Windows, that is, I've never used Win32 or .NET. If there isn't is there something available for Mono? I hate to exclude platforms.

回答1:

Gosh, if you really want to offer a bounty on a question that can be answered in 6 seconds using google:

  • https://sites.google.com/site/gmitresearch/mt4j/mt4j-basics
  • http://code.google.com/p/sparsh-ui/
  • http://developers.sun.com/learning/javaoneonline/2008/pdf/TS-6127.pdf
  • How to develop multi-touch applications in Java?


回答2:

This is an old question but i find it may still be useful. Java Swing does not have native support for touch-events. However, Java FX does. Java FX is already integrated in Java SE 7 and 8 and could be installed on Java SE 6. See this article from Oracle