r/JavaFX • u/Tidachura3 • Jul 06 '20
Duplicate tables...
Hi, I am working to fix my issues which is duplicate screens after I click specific buttons. I want to be able to switch between those tables using buttons (save and cancel buttons). However, the second screen's save and cancel buttons will create duplicate screen (create another main screen so I will have two main screen) after I click save and cancel buttons instead of switching back and forth to the Main screen and the second screen
Can anyone suggest me how can I try to fix this duplicate screen issues please?
https://user-images.githubusercontent.com/31402838/86545041-9762ae80-bee0-11ea-809c-7a534833134d.PNG
This is my code that create duplicate tables. I have 5 screens in total. I would like to go back and forth after I click the save and cancel buttons but it create duplicate screen instead.
https://gist.github.com/Kijimu7/4444b1f202f29d80aa62354e14efec50
1
u/[deleted] Jul 07 '20
Hey there!
Well, i see two things:
You are implementing a interface call "InventoryProgram1". the number one at the end its correct? try deleting that number.
the other thing that i see is that you have commented the start method. You always going to need that method, so, try making this things and see if it work now.