I am using ControlFX library in my project to generate forms dynamicly using PropertySheet. Controllor class:
public class Controllor implements Initializable
{
@FXML
private PropertySheet sheet;
@Override
public void initialize(URL location, ResourceBundle resources)
{
sheet = new PropertySheet(BeanPropertyUtils.getProperties(new BeanObj(someProperties)));
sheet.setMode(PropertySheet.Mode.NAME);
}
}
My fxml file contains an AnchorPane and PropertySheet (just for testing).
The program runs with no errors but it shows an empty propertySheet control!
So , am I doing this right? Please any help would be appreciated !!
EDIT: I manage to get the application running by implementing the same code in the Start() method of the MainClass
I am still confused !! I can't figure it out...
EDIT 2: F5 solve everything to me