我需要在javafx see Interface
中重现此图像我访问此界面的方式如下:
这是我得到click to see image
的最终结果很明显我在这里做错了,请向我澄清
该界面应该是FULLSCREEN且响应迅速
我尝试执行以下控制器代码:
public class HomeController implements Initializable
{
@FXML
private BorderPane borderPane;
public void initialize(URL location, ResourceBundle resources) {
// responsivity
Screen screen = Screen.getPrimary();
Rectangle2D bounds = screen.getVisualBounds();
Stage stage = Entry.getMainStage();
stage.setX(bounds.getMinX());
stage.setY(bounds.getMinY());
stage.setWidth(bounds.getWidth());
stage.setHeight(bounds.getHeight());
// this code gives an error
borderPane.setBottom(null);
borderPane.setLeft(null);
borderPane.setRight(null);
}
}