javafx - MenuBar to top of the app -
i'm quite new javafx , have 2 methods - 1 returning grid layout , other 1 returning hbox menubar, fot life of me can't make it, it's not overlapping (i want grid few pixels lower). have code in start method:
final group rootgroup = new group(); final scene scene = new scene(rootgroup); rootgroup.getchildren().add(addbar(stage.widthproperty())); rootgroup.getchildren().add(addgridpane()); stage.setscene(scene); stage.show();
how fix this?
you may use layout manager root. example:
final vbox rootgroup = new vbox();
then children aligned vertically.
Comments
Post a Comment