mihosoft.eu
Programming, Art, Linux, Free Software…
mihosoft.eu
Navigation
  • Home
  • VRL-Studio
  • SonoAir
  • Monochrome Wars
  • About
  • Impressum
  • Datenschutz
You are here: Home › Featured › JavaFX & Multitouch

JavaFX & Multitouch

October 19, 2013 | Filed under: Featured, Java, JavaFX and tagged with: Java, JavaFX, multitouch, scientific visualization, visual programming

After JavaOne I had a wonderful time Canada. On my trip home I couldn’t resist to touch the keyboard again 🙂 Another passenger and I had a discussion on Java and JavaFX. Finally, I gave him a short introduction to JavaFX. One of the demos we developed is the following small and simple demo application:

The sample code covers multitouch, animations and css. The code consists of just one .java file and one .cssfile.

Requirements

  • JDK >= 1.7.u25
  • Netbeans >= 7.4 (may also work with older versions)

Download

Download the project here: MultiTouch01

Fedback

If you have further questions or if you found a bug feel free to contact me!

Stay tuned and follow me on Twitter

Did you like this article? Share it with your friends!

Tweet

Written by admin

Visit my Website Follow me on Twitter

6 Responses to "JavaFX & Multitouch"

  1. Jim says:
    November 21, 2013 at 14:34

    Very nice, but I have a question? Why make a program that depends on a particular IDE? By doing this you exclude a lot of people from using your code. Maybe you don´t care and that is fair enough. The beauty of Java is that it only needs a JRE to run. Why lose that advantage?

    1. miho says:
      November 21, 2013 at 14:50

      Usually I use Gradle which is compatible with most IDEs (see VWorkflows). But since this was a spontaneous tutorial in the plane(!) I did indeed not care about IDE compatibility. If you need help converting it to a Gradle project then just ask :)https://mihosoft.eu/wp-admin/post.php?post=940&action=edit#comments-form

      1. Jim says:
        November 21, 2013 at 15:49

        He he, I don’t use Gradle either. This is my point again. I don’t mean to be out of order though mate. As I say, you are free to do things as you want but I do think these extra layers stifle adoption. All the best.

        1. miho says:
          November 21, 2013 at 16:35

          He he, I don’t use Gradle either.

          What do you use then? Hopefully not just javac on the command line. This will not work for non trivial projects that incorporate dependencies & resources etc.

          As I say, you are free to do things as you want…

          Sure, I know that 😉

          …I do think these extra layers stifle adoption.

          True for IDE specific projects. Wrong for Gradle.

  2. Jim says:
    November 21, 2013 at 16:46

    I use Eclipse, so not command line! But note that I am not saying you should make projects for me in Eclipse. I mean that for adoptions sake, you would be better just giving your code that can be run in Eclipse, Netbeans or whatever. Maybe you would also need to supply any jars that your code might depend on. Does you code absolutely need Java/JavaFX to run? YES Does you code absolutely need Gradle to run? NO

    …I do think these extra layers stifle adoption.

    … True for IDE specific projects. Wrong for Gradle.

    I disagree! Many people will come to your code and think ‘ah, I need gradle to run this, should I install it and learn how to use it? errr, maybe later’. Hence adoption stifled.

    The demo looks very cool, but IMHO you are limiting its reach.

    Peace

    1. miho says:
      November 21, 2013 at 17:07

      I disagree! Many people will come to your code and think ‘ah, I need gradle to run this, should I install it and learn how to use it? errr, maybe later’. Hence adoption stifled.

      Wrong! You DON’T need to install Gradle. That’s the point! It’s just another Jar file in your project. It only depends on the JDK.

      When I teach students I discover that explaining them how to add Jar files as dependencies in their favourite IDE takes much more time than just telling them to either type ./gradlew run on the command line or to just open the Gradle project in e.g., NetBeans. Not to mention multi-project builds!

      Please read a bit more about Gradle. Gradle is all about building projects WITHOUT manually downloading dependencies or build tools. Everything that you need to get startet is part of your project. You can auto-download via maven or just add plain Jars to the project. It runs flawless on Linux, OS X and Windows. I use it in NetBeans, IntelliJ and Eclipse.

      I’m closing the comments now since we are totally off-topic. Maybe I should tell more about Gradle in an extra post.

Comments are closed.

Pages

  • About
  • Datenschutz
  • Impressum
  • Seminar 2019

Categories

  • 3D Printing
  • Any-Key
  • Art
  • C/C++
  • Devoxx
  • Digital Painting
  • Featured
  • IoT
  • Java
  • JavaFX
  • Javakurs 2015
  • JavaOne
  • Linux
  • Linux on Apple Hardware
  • Linux: Daily Usage Tips
  • Mobile Apps
  • Mobile Devices
  • Programming Languages
  • Repair Things
  • Science
  • Sonos
  • Teaching
  • Uncategorized
  • Virtual Reality
  • VRL

Tags

3D 3D Printing 3d visualization AirSonos Apple Music Devoxx Devoxx 2013 gradle graph iOS Java Java 8 JavaFX JavaFX 8 JavaOne JavaOne 2013 jdk9 JFXtras JInternalFrame Linux MacBook MDI mobile apps OpenDive OpenJDK OpenJFX Open Source Performance scientific visualization SonoAir Sonos Ultimaker Virtual Reality Virtual World visual programming VPlot VRL VRL-Studio VWorkflows window control Window Node Window System workflow workflows X11

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

JavaOne Rockstar

JavaOne Rockstar
Follow @mihosoft

Recent Posts

  • Native JDK9 Application Bundles
  • Running C code from Java via VTCC
  • SonoAir finally supports macOS High Sierra!
  • JavaOne 2017 Community Keynote Artwork
  • The JGrounds App: better teaching apps for Java 9 [BOF5047]

Recent Comments

  • ¿Ventanas completamente personalizadas de JavaFX? - Fallosweb.com on VFXWindows
  • JavaFX entirely customized windows? – w3toppers.com on VFXWindows
  • Volel Mondesir on Adding Custom Icons to JFXtras Window Control (VFXWindows)
  • Volel Mondesir on Adding Custom Icons to JFXtras Window Control (VFXWindows)
  • Switching between different JDK versions in Windows - ErrorsFixing on JSelect: switch between different JDK versions

Archives

  • February 2018
  • October 2017
  • September 2017
  • February 2017
  • June 2016
  • May 2016
  • November 2015
  • September 2015
  • July 2015
  • March 2015
  • September 2014
  • March 2014
  • February 2014
  • December 2013
  • November 2013
  • October 2013
  • September 2013
  • August 2013
  • July 2013
  • June 2013
  • May 2013
  • April 2013
  • March 2013
  • February 2013
  • October 2012
  • September 2012
  • August 2012
  • July 2012
  • November 2010
  • February 2010
  • November 2009
  • October 2009
  • February 2009
  • August 2008
  • May 2008
  • April 2008
  • March 2008
Privacy & Cookies: this site uses cookies. By continuing to use this website, you agree to their use.
To find out more, see here: Impressum & Datenschutz

© 2023 mihosoft.eu