#Use multiple Controllers in Javafx

1 messages · Page 1 of 1 (latest)

latent slate
#

if i have one Controller for Login which has login controls and a SceneController which controls scenes...
and i want a button in my Login form to change Scene to Signup how can i call the function from SceneController in Login Controller?
JAVAFX

weary crescentBOT
#

<@&987246487241105418> please have a look, thanks.

weary crescentBOT
#

While you are waiting for getting help, here are some tips to improve your experience:

Code is much easier to read if posted with syntax highlighting and proper formatting.

If nobody is calling back, that usually means that your question was not well asked and hence nobody feels confident enough answering. Try to use your time to elaborate, provide details, context, more code, examples and maybe some screenshots. With enough info, someone knows the answer for sure.

Don't forget to close your thread using the command </help-thread close:1027500463647621170> when your question has been answered, thanks.

latent slate
#

i need both LoginController and SceneController
LoginCont. for login funcs
and SceneCont. for changing scene
to Signup

#

i want to use 2 controllers in 1fxml file
summary of question

bright solar
latent slate
#

uh

unreal lintel
#

I'm not sure what you are asking. You show the login form with two buttons, login and sign up. I'm assuming the login form already has a controller. Are you asking how to open the sign up form when the sign up button is pressed?

fiery bear
unreal lintel
latent slate