+ 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);
1 Antwort
0
Advanced java like servlet and applet are not supported here that's why no idea.