Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 4 of 4

Thread: Making a Touch interface with Java

  1. #1
    Junior Member
    Join Date
    Jan 2014
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Making a Touch interface with Java

    I want to make a touch interface with java. I mean i have a touchscreen which responds back to windows with the coordinates of touch, is the finger moving, when first put, and when removed. Now i want to make a program that would show something on it. Now i want to make an application(windows based) to setup a UI(sliding between different images , readmore etc etc), more like a slideshow. The user would be able to select images from the computer and would be able to setup the UI, and then there will be a show button, so that it is shown. Can anyone point me in the right direction on how to do it?
    I am fairly confused about how to do the slideshow thing, after selecting the images.

    thanks
    -TinyLED


  2. #2
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,517
    My Mood
    Mellow
    Thanks
    215
    Thanked 698 Times in 680 Posts

    Default Re: Making a Touch interface with Java

    What's confusing you? Are you familiar with javax.swing.Timer? Are you familiar with Java Swing at all?

  3. #3
    Member andbin's Avatar
    Join Date
    Dec 2013
    Location
    Italy
    Posts
    443
    Thanks
    4
    Thanked 122 Times in 114 Posts

    Default Re: Making a Touch interface with Java

    Quote Originally Posted by TinyLED View Post
    I want to make a touch interface with java.
    I am fairly confused about how to do the slideshow thing, after selecting the images.
    First, from the GUI's point of view, there's no real difference between the interaction with a mouse/keyboard and a "touch" screen. In other words, for example a JButton can be clicked either with a mouse or a touch screen. There's nothing particular you have to do to handle e.g. clicks with a touch screen!

    If you mean that your user interface must be "cool", with e.g. shadings, animations, etc..., it's another story. And it depends only on the level of sophistication that you can reach using timers, custom painting, images, and so on.
    It's not a question about mouse/keyboard vs touch screen.
    Andrea, www.andbin.netSCJP 5 (91%) – SCWCD 5 (94%)

    Useful links for Java beginnersMy new project Java Examples on Google Code

  4. #4
    Junior Member
    Join Date
    Jan 2014
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Making a Touch interface with Java

    Well, i have figured most of it, and actually even kind of made it. I used JavaFX. I found that making the end display customizable, it would be hard if i use Java swing or just JavaFX. SO i decided on using the WebView from JavaFX which allows me to use a web app for displaying. And all the interaction, that is the touch screen thing can be handled by my java program and then passed to the WebView form.
    The thing now is i am actually not using a touchscreen, but something along the lines, and i am not sure how to pass a custom event to the webview. Any tips on that?

Similar Threads

  1. Replies: 0
    Last Post: April 5th, 2013, 10:20 AM
  2. How to detect pinch gesture on Mac touch pad?
    By nafty in forum AWT / Java Swing
    Replies: 1
    Last Post: March 17th, 2013, 07:17 PM
  3. A screen touch sensor
    By Someonation in forum Android Development
    Replies: 1
    Last Post: November 7th, 2011, 06:10 AM
  4. Writing java applications for the iPod Touch
    By JavaPF in forum Java ME (Mobile Edition)
    Replies: 8
    Last Post: June 14th, 2011, 04:34 PM