News Ticker

Menu

Moving shapes in JavaFX with Multi threading

Multithreading and JavaFX

Create an object-oriented JavaFX GUI that shows two shapes or images moving around a GUI. Each shape will have its thread to move it around the GUI. You must use threads – not AnimationTimelines or JavaFx Paths- this is a threading homework that happens to use JavaFx- not just a JavaFx homework.

You must have two separately distinct activities. Two flashing texts are only one different activity. I have provided an example of how to move an image in a circle and flashing text using threads. You may choose one of these, but your second activity must be different from shooting and moving in a circle. Do not directly copy the examples- you may use the algorithm with other things. Try moving in an up-down, side to side, zig-zag, etc. Be sure to shut down all threads when the Application closes. (Hint: interrupt() method on Thread class)

Your program should consist of multiple classes. Put thread Runnable classes in a different class from Application and pass shared information in the constructor.

Order Now:


Buy now

Share This:

Hassnain

I'm Hassnain. A full time Java Developer. I enjoy to make modern projects. I love to create JavaFX, Java Swing GUI and write about Java Programming, OOP. Now I'm working with CS2IT. You can buy our projects from here.

  • To add an Emoticons Show Icons
  • To add code Use [pre]code here[/pre]
  • To add an Image Use [img]IMAGE-URL-HERE[/img]
  • To add Youtube video just paste a video link like http://www.youtube.com/watch?v=0x_gnfpL3RM