Search code examples
javafxresizejavafx-2stagestretch

Is there a way to stretch a stage so that it fills the whole screen in javafx?


I was wondering if there was a way to stretch the stage in javafx because I want my application to fit any screen. So, ss there a way to stretch a stage so that it fills the whole screen in javafx?


Solution

  • You can use the setFullScreen method of the Stage class.