Is there a Java API for touching devices such as t

2020-02-03 11:48发布

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.

2条回答
▲ chillily
3楼-- · 2020-02-03 12:23

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

查看更多
登录 后发表回答