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

How are you guys adding the image to the background of the menu?

asked in CSC305 Fall 2020 by (1 point)

2 Answers

+4 votes

public class ImageIcon extends Object implements Icon. So we are using the ImageIcon public class to do this for example,

car1 = new ImageIcon("gamecar2.png");

this will add a car to the background importing the particular car image

answered by (1 point)
+1 vote

My group is has the background as a imageView and uses the set methods that the imageView class has.

answered by (1 point)