gleidsonmt / DashboardFx

JavaFx Dashboard
https://gleidsonmt.github.io/
GNU General Public License v3.0
468 stars 143 forks source link

Add models package to module-info #32

Closed matthias-kopeinigg closed 1 year ago

matthias-kopeinigg commented 1 year ago

Inside the module-info, add the property: exports code.Models;

matthias-kopeinigg commented 1 year ago

@gleidsonmt this will fix your error

gleidsonmt commented 1 year ago

Hi, well.. what error are you referring?

matthias-kopeinigg commented 1 year ago

From your stream 5 min ago

gleidsonmt commented 1 year ago

Ok, an sorry, why I will put the code.Models in module info? is it a feature? explain more, please.. I'm lost

matthias-kopeinigg commented 1 year ago

the modul-info is like a pom.xml from maven. exporting the package will give javafx access to all classes inside of the package.

matthias-kopeinigg commented 1 year ago

the modul-info is like a pom.xml from maven. exporting the package will give javafx access to all classes inside of the package.

The same as you exported the controller package

gleidsonmt commented 1 year ago

Oh the first package in tree , right? I think I got the idea

matthias-kopeinigg commented 1 year ago

like so: module com.example.c482_project { requires javafx.controls; requires javafx.fxml; opens code to javafx.fxml; exports code; exports code.Controllers; exports code.Models; opens code.Controllers to javafx.fxml; }

gleidsonmt commented 1 year ago

is it because you missing any classes in the project? which?

matthias-kopeinigg commented 1 year ago

Do you have teamspeak or discord?

gleidsonmt commented 1 year ago

I don't know teamspeak, but I have discord, that's my nickname Gleidson#5768