java - Javafx Mediaview settings according to scene property -
i trying change media view height , width according media player window. please tell me how can adding scene.setonzoom().
in order re-size mediaview along scene, bind fitwidthproperty
, fitheightproperty
of mediaview
scene's widthproperty
, heightproperty
respectively.
mediaview.fitwidthproperty().bind(scene.widthproperty()); mediaview.fitheightproperty().bind(scene.heightproperty());
Comments
Post a Comment