javafx - Minimal size ignored -


i'm creating ui application using scenebuilder.

i created simple layout.

enter image description here

but after setting minimal size everywhere, still window can reduced this.

enter image description here

the .fxml file contains

    <anchorpane maxheight="-infinity" maxwidth="-infinity" minheight="400.0" minwidth="600.0" prefheight="400.0" prefwidth="600.0" xmlns="http://javafx.com/javafx/8.0.40" xmlns:fx="http://javafx.com/fxml/1">    <children>       <menubar layouty="2.0" minheight="25.0" minwidth="600.0" prefheight="25.0" prefwidth="600.0" anchorpane.leftanchor="0.0" anchorpane.rightanchor="0.0" anchorpane.topanchor="0.0">         <menus>           <menu mnemonicparsing="false" text="file">             <items>               <menuitem mnemonicparsing="false" text="close" />             </items>           </menu>         </menus>       </menubar>       <splitpane dividerpositions="0.85" layouty="23.0" minheight="377.0" minwidth="600.0" prefheight="377.0" prefwidth="600.0" anchorpane.bottomanchor="0.0" anchorpane.leftanchor="0.0" anchorpane.rightanchor="0.0" anchorpane.topanchor="23.0">         <items>           <anchorpane minheight="377.0" minwidth="505.0" prefheight="377.0" prefwidth="505.0">                <children>                   <textflow minheight="377.0" minwidth="505.0" prefheight="377.0" prefwidth="505.0" anchorpane.bottomanchor="0.0" anchorpane.leftanchor="0.0" anchorpane.rightanchor="0.0" anchorpane.topanchor="0.0" />                </children>             </anchorpane>           <anchorpane minheight="200.0" minwidth="87.0" prefheight="200.0" prefwidth="87.0">                <children>                   <pane minheight="200.0" minwidth="87.0" prefheight="200.0" prefwidth="87.0" anchorpane.bottomanchor="0.0" anchorpane.leftanchor="0.0" anchorpane.rightanchor="0.0" anchorpane.topanchor="0.0" />                </children>             </anchorpane>         </items>       </splitpane>    </children> </anchorpane> 

i've tried set minimal size through different elements. or set match pref_size. no results.

how can set 1 pane (or other element) cannot smaller number ?


Comments

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

unity3d - Fatal error- Monodevelop-Unity failed to start -