java - Repainting of JavaFX window -
is there option repaint opened window of javafx application? need repaint window in loop (i=1000) , check time start of repainting end of repainting.
i not know , method use. lot
public class javafxcombobox extends application { private static final int numberoftestingloops = 100; private list<long> resultofanalysisrepaint = new arraylist<long>(); private list<double> resultofanalysismemory = new arraylist<double>(); public static void main(string[] args) { launch(args); } @override public void start(stage primarystage) { gridpane gridpane = new gridpane(); int counter = 0; list<combobox<string>> comboboxes = new arraylist<combobox<string>>(); (int = 0; < 30; i++) { (int j = 0; j < 30; j++) { counter++; combobox<string> combobox = new combobox<string>(); combobox.getitems().addall(integer.tostring(counter), "test1", "test2"); combobox.setvalue(integer.tostring(counter)); comboboxes.add(combobox); gridpane.add(comboboxes.get(counter - 1), j * 30, * 35); } } scene scene = new scene(gridpane); primarystage.setscene(scene); primarystage.setwidth(1550); primarystage.setheight(670); primarystage.show(); } }
what need timeline animation. allows describe state each frame , change frames delay.
Comments
Post a Comment