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

+11 votes

Are you trying to use a Rating object in your code, but you can't import it, even after you updated your pom.xml so that Maven would download the controlsfx library JAR files?

I'm afraid the lab directions left out a crucial step...

asked in CSC305 Fall 2023 by (3.2k points)

1 Answer

+5 votes

Before you can import and use org.controlsfx.controls classes in your code, you'll also need to add:

 requires org.controlsfx.controls; 

to your module-info.java

After that, you should be able to import and use the Rating class in your code.

answered by (3.2k points)
...