I am a beginner Java / JavaFX programmer, and I am developing a simple JavaFX building design tool where you can pull walls, floors, etc. Thus, objects (mainly lines, circles, polygons, rectangles) are created and created on the screen, and not created before launch.
I am currently using a simple panel as a visual drawing area and add objects directly to the panel, which works quite well. I came across several examples when people implement on a canvas, not in a panel, but I can’t understand what the real difference between the two is or why the panel is not enough.
I was wondering if there are any advantages to using Canvas as my visual area, and not just a panel?
Thank!
source
share