将应用程序界面扩展到较低分辨率的JavaFX

时间:2019-03-22 16:15:35

标签: user-interface javafx scaling zooming borderpane

我正在制作项目,我没有足够的时间将应用程序界面缩放到较低的分辨率。我可以自动制作(例如单击缩放按钮)吗?

<BorderPane fx:id="borderPane" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="720.0" minWidth="1280.0" prefHeight="720.0" prefWidth="1280.0" xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1" fx:controller="FX.Controller">
<center>

    <BorderPane fx:id="paneBig" BorderPane.alignment="CENTER">
    </BorderPane>


</center>
<top>
    <HBox fx:id="titleBar" alignment="CENTER_RIGHT" maxHeight="23.0" prefHeight="200.0" prefWidth="200.0">
        <BorderPane.margin>

        </BorderPane.margin></HBox>
</top>

必须调用称为“ paneBig”的BorderPane较小,并且其子项也要较小(此BorderPane的子Pane具有Labels等)。

请帮助! ;)

0 个答案:

没有答案