Welcome to the CSC Q&A.
Get help and give help!
Write great code!
It is our choices... that show what we truly are, far more than our abilities.

Categories

+6 votes

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

asked in CSC305 Fall 2020 by (8 points)

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 (8 points)
+1 vote

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

answered by (8 points)
...