+ 2
How do we make a Back button in Jframe? Especially when we do the frame transition between multiples of jframe.?
implementing jframe
2 Respostas
0
When you press a button does it create a new JFrame or switch between them?
0
You can create a history Array where you can follow the user where they go from Frame to Frame (Array should be public)
Then once they press back you can just get the element from array (That means an int would need a +1) and once they press on another button to switch jframes you'll need to make int = 0 and delete everything in the array from the int value to end