Welcome to the CSC Q&A, on our server named in honor of Ada Lovelace. Write great code! Get help and give help!
It is our choices... that show what we truly are, far more than our abilities.


+7 votes

Does anyone know of a way to move nodes without input from the keyboard or mouse? My group has the enemy cars(which are Nodes/ImageViews) appear on the screen, but we cannot get the cars to move on their own. We have looked at using the translate(), layout(), and relocate() methods, but the car does not move.

asked in CSC305 Fall 2019 by (1 point)

1 Answer

+3 votes

An implementation of the Icon interface that paints Icons from Images. Images that are created from a URL, filename, or byte array are preloaded using MediaTracker to monitor the loaded state of the image. Rather than using a node we kinda painted our image using paintIcon and assigned random movement of these painted objects

answered by (1 point)