Hallo Zusammen, ich bin gerade dabei Fenster mit JavaFXML zu erstellen.
Ich benutze:
IDE = NetBeans 7.1.1
Java:
java version "1.7.0_03"
Java(TM) SE Runtime Environment (build 1.7.0_03-b05)
Java HotSpot(TM) Client VM (build 22.1-b02, mixed mode, sharing)
Im Anhang ist die fxml-Datei.
Mein Problem ist, dass ich in ein GridPane ein Bild einfügen möchte. Ich bekomme es nur nicht hin:
Hier ein Auszug aus der personenwindow.fxml:
[highlight=xml]
<GridPane fx:controller="com.gast.personendaten.personenwind owController"
xmlns:fx="http//javafx.com/fxml"
alignment="top_left" hgap="4" vgap="8">
...
<ImageView GridPane.columnIndex="4" GridPane.rowIndex="7">
<image>
<Image url="@personen.jpg"/>
</image>
</ImageView>
...
</GridPane>
[/highlight]
Leider Funktioniert es so nicht. Was habe ich vergessen?
Vielen Dank für Eure Unterstützung
Gruß Lerando
Ich benutze:
IDE = NetBeans 7.1.1
Java:
java version "1.7.0_03"
Java(TM) SE Runtime Environment (build 1.7.0_03-b05)
Java HotSpot(TM) Client VM (build 22.1-b02, mixed mode, sharing)
Im Anhang ist die fxml-Datei.
Mein Problem ist, dass ich in ein GridPane ein Bild einfügen möchte. Ich bekomme es nur nicht hin:
Hier ein Auszug aus der personenwindow.fxml:
[highlight=xml]
<GridPane fx:controller="com.gast.personendaten.personenwind owController"
xmlns:fx="http//javafx.com/fxml"
alignment="top_left" hgap="4" vgap="8">
...
<ImageView GridPane.columnIndex="4" GridPane.rowIndex="7">
<image>
<Image url="@personen.jpg"/>
</image>
</ImageView>
...
</GridPane>
[/highlight]
Leider Funktioniert es so nicht. Was habe ich vergessen?
Vielen Dank für Eure Unterstützung
Gruß Lerando