How to use method from other Class
How to use method from other Class I have a simple question for prof and hard for me :-) I have tableView in 3 differ classes and I have 2 methods which should be initialized every time when App is started. Is is possible to create that 2 methods without Class declaration /make it static and use it like in initialization. Example below. public class Subscriber { private StringProperty number; private StringProperty addr; public Subscriber() { this(null, null); } .... } This is example of my class which use Subscriber FirstClass(){ @FXML private void initialize() { tableView.getSelectionModel().setCellSelectionEnabled(true); tableView.getSelectionModel().setSelectionMode(SelectionMode.MULTIPLE); numberCol.setCellValueFactory( cellData -> cellData.getValue().numberProperty()); addrCol.setCellValueFactory( cellData -> cellData.getValue().addrProperty()); } And that method I use in each of this and other 2 classes to get possibil...