views:

167

answers:

2

Hi all

I'm developing a system that will eventually be implemented on a touch-screen supported machines such as HP Touchsmart.

Are there any relevant references in java swing api that support flicking pages to scroll up/down (such as in iphone/android phone)? Any general references to any swing api that support touch/multi-touch are also appreciated.

Thanks!

PV

A: 

Not AFAIK, but would be interested to find out if there is. I seriously doubt you would find multi-touch technology though as thats patented by Apple methinks and they would sue Sun/Oracle if they tried to add it to Swing.

I would think that it would be possible to implement swipe detection though by attaching a mouse listener to your root pane and polling for mouse position changes while the mouse is pressed.

DrDipshit
+1  A: 

I think that you should look for some kind of mouse gesture library since Java will see touchscreen just like any other "mouse". It would be nice to see Swing L&F specialized for touch screens that takes care of mouse gestures and size of the controls.

aco
thanks aco, I`ve looked into some mouse gesture libraries and still yet have to play around with it.
phillyville