I need a method that can be attached to a button to help navigate previous and next scenes in javafx,swing or awt GUI programmin | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
+ 1

I need a method that can be attached to a button to help navigate previous and next scenes in javafx,swing or awt GUI programmin

Id used this code Hashmap<Integer,Scene>positions=new Hashmap<Integer,Scene>(); int value; Public static void back(){ positions.put(1,scene); positions.put(1,scene1); positions.put(1,scene2); positions.put(1,scene3); Scene il=Window.getScene(); If(il.equals(scene1) value=1; else if(il.equals(scene2) value=2; else if(il.equals(scene3) value=3 Window.setScene(positions.get(value);

15th Aug 2020, 9:44 AM
Jkim Avatar
Jkim Avatar - avatar
1 Antwort
0
Advanced java like servlet and applet are not supported here that's why no idea.
20th Aug 2020, 7:32 PM
shubham kumar
shubham kumar - avatar