+ 2

How do we make a Back button in Jframe? Especially when we do the frame transition between multiples of jframe.?

implementing jframe

24th Jun 2017, 7:18 AM
Pema Gyalpo
Pema Gyalpo - avatar
2 ответов
0
When you press a button does it create a new JFrame or switch between them?
24th Jun 2017, 9:11 AM
Limitless
Limitless - avatar
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
24th Jun 2017, 9:13 AM
Limitless
Limitless - avatar