i have small application javafx in it. created fxml-files scene builder. loading them fxmlloader. far good, if start application, 1 component not shown. rest of gui works fine. first thought didn't add it, scene builder shows me when open preview , found in fxml-structure. after trying few things out, started application on computer , component showing. not showing on computer. both machines working same jdk (java 8), how possible?
here fxml-structure. component isn't showing menu "aktion" of menu-bar. menu-bar visible. item missing stupid reason
<?xml version="1.0" encoding="utf-8"?> <?import javafx.scene.control.*?> <?import java.lang.*?> <?import javafx.scene.layout.*?> <?import javafx.scene.layout.anchorpane?> <pane maxheight="-infinity" maxwidth="-infinity" minheight="-infinity" minwidth="-infinity" prefheight="650.0" prefwidth="410.0" xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.gigatronik.azubi.kontaktverwaltung.gui.controller.detailcontroller"> <children> <menubar prefheight="32.0" prefwidth="410.0"> <menus> <menu mnemonicparsing="false" text="aktion"> <items> <menuitem mnemonicparsing="false" onaction="#onedit" text="bearbeiten" /> <menuitem mnemonicparsing="false" onaction="#deletecontact" text="löschen" /> </items> </menu> </menus> </menubar> <label layoutx="10.0" layouty="50.0" text="vorname:" /> <label layoutx="10.0" layouty="90.0" text="nachname:" /> <label layoutx="10.0" layouty="130.0" text="e-mail:" /> <label layoutx="10.0" layouty="170.0" text="telefon:" /> <label layoutx="10.0" layouty="210.0" text="rolle:" /> <label fx:id="firstnamelabel" layoutx="95.0" layouty="50.0" prefheight="20.0" prefwidth="305.0" text="*firstname*" /> <label fx:id="surnamelabel" layoutx="95.0" layouty="90.0" prefheight="20.0" prefwidth="305.0" text="*surname*" /> <label fx:id="emaillabel" layoutx="95.0" layouty="130.0" prefheight="20.0" prefwidth="305.0" text="*email*" /> <label fx:id="phonenumberlabel" layoutx="95.0" layouty="170.0" prefheight="20.0" prefwidth="305.0" text="*phonenumber*" /> <label fx:id="rolelabel" layoutx="95.0" layouty="210.0" prefheight="20.0" prefwidth="305.0" text="*roledescription*" /> <titledpane fx:id="organisationtpane" expanded="false" layoutx="10.0" layouty="250.0" prefwidth="390.0" text="organisation"> <content> <anchorpane minheight="0.0" minwidth="0.0" prefheight="140.0" prefwidth="200.0"> <children> <label layoutx="15.0" layouty="20.0" text="name:" /> <label layoutx="15.0" layouty="60.0" text="straße/hnr.:" /> <label layoutx="15.0" layouty="100.0" text="plz/stadt:" /> <label fx:id="organamelabel" layoutx="95.0" layouty="20.0" text="*name*" /> <label fx:id="orgastreethnrlabel" layoutx="95.0" layouty="60.0" text="*street/hrn*" /> <label fx:id="orgazipcodecitylabel" layoutx="95.0" layouty="100.0" text="*zipcode/city*" /> </children> </anchorpane> </content> </titledpane> </children> </pane>
thanks help
baschdi
Comments
Post a Comment