Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

Touch Screen Action Event Listener GUI program coding

 
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear Programmers,
I am interested in making a website which could be operated by merely touching the screen (thus cutting out the need for keyboard/ mouse input). I have heard such touch sensetive screens exist - such as the Wacom Cintiq Tablet PC, or even on the more modern mobile phones.

I wanted to know if any of you know where I could obtain information/ instruction on Java code that can create a program that incorporates action Events/ Listeners to the GUI that is screen operable - that could be accessed - and operated by a touch sensetive screen.

Anyway, hope you can offer me some advice or leads on this.

Thank you for reading.

Yours
Simon
 
Marshal
Posts: 75672
354
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Have you got a touchscreen? What have you tried? Won't ordinary ActionListeners work?

Is tapping a touchscreen at all different from clicking a mouse in the same location?
 
author
Posts: 14112
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think Campbell is right - a touchscreen would likely would come with a driver that replaces a mouse driver. Applications running on an operating system with such a driver installed wouldn't even notice the difference to normal mouse usage.
 
Simon Evans
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear Programmers,
No, I haven't got a touchscreen at present, but am planning on getting a Cinq tablet, and an I-phone, cashflow permitting, still,as I am interested in this TouchScreen operable Website project, the cost of the hosting of it would take fiscal priority.
Anyway getting away from the prosaic world of cash and consumer durables, I was given to understand that the programming of screen touch activated action listeners on a GUI requires not just the hardware (the consumer durables) but also the software ie: the GUI that is accessed by the touch sensetive pc unit, and it is the programming of such a GUI that would be my main priority. I suppose I could program a GUI to keyed/ mouse input, but taking the bull by the horns as it were, would prefer to proceed straight to programming it with screen touch action event listeners. I was given to understand that such action event listeners require a different coding to keyed/mouse input listeners, and that the coding is out there somewhere, but the same person who told me this, couldn't say specifically where such code could be located. Which is the reason why I was asking.
I am thankful for Heraclitus' opinings, but would suggest that conversely as thoughts are dyed the color of the soul, disintegration is as much ones liable destiny.
Anyway, thank you for your suggestions thus far,
hoping to hear
Yours
Simon
 
Campbell Ritchie
Marshal
Posts: 75672
354
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Just as well I haven't put a classical quote on my postings

I tried googling and these are a few links 1 2 3 Don't know how useful they will be.
 
Ranch Hand
Posts: 802
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I love your big 'fancy' words, but to get to the point. You would need.

A) a touch screen personal laptop/pc
or
B) a touch screen device with an emedded mobile OS.

for choice a, you could just treat the programming the same as the os would have a driver that would recognize screen taps as mouse clicks and screen drags as mouse drags and etc.. etc....

for choice b, you would need to use the java emedded programming package ( kind of like .NET Compact Framework).

All in all I wouldn't think the API's would be THAT different.

so good luck!

Justin Fox
 
Ilja Preuss
author
Posts: 14112
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This was the first hit when googling for "java touch screen": http://forum.java.sun.com/thread.jspa?threadID=691556&messageID=4020189
 
Simon Evans
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear Programmers,
Thank you for your advice, I shall look these references up.

(- like all sophists, just filthy jealous of genii like Heraclitus)

Yours
Simon
 
Whose rules are you playing by? This tiny ad doesn't respect those rules:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic