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.

Categories

+10 votes

Has anyone found any websites that help with the final question?

asked in CSC305 Fall 2023 by (1 point)
0

Note: Tip for asking good Q&A questions (e.g. on sites like StackOverflow, or Lovelace):

Write a clear title that will pass the test of time: e.g. "Importing Images in JavaFX".

"Final Question" could be a question about the final project/presentations, or the final question on some other lab or assignment.

We want to create a web repository of questions/answers that people can search and go back to later as a resource!

1 Answer

+3 votes

The free online Eck Java textbook Section 6.2 that you read covers loading/drawing images.

https://math.hws.edu/javanotes/c6/s2.html

However, perhaps the trickier part is opening up a dialog that let's the user choose an image file. For this, you'll want to use the JavaFX FileChooser class.

Here's a site: http://www.java2s.com/Tutorials/Java/JavaFX/0555__JavaFX_FileChooser.htm

Or, if you prefer learning from videos here's one, https://www.youtube.com/watch?v=Af-hwO19AMY , which is part of a much longer video tutorial sequence about JavaFX.

answered by (3.4k points)
...