I'm new to
Java but having tons of fun.
I've run into an issue where I need to set the stage title from a class other than the one it is defined in.
I'm using Netbeans and Scene Builder to create FXML applications.
In the same class as main, I have this:
public void setTitle(
String _theString) {
stage.setTitle(_theString);
}
Which I'm trying to access from another class, but when I do, I get non-static variable method setTitle(String) can not be referenced from a static context
The only thing static, is main, which I tried removing static from but no change.