0% found this document useful (0 votes)
10 views

PartieXML TP3JavaFX

The document is an XML file that defines the layout and components of a JavaFX GUI for managing products. It includes a top section with a label, text field and button to add products, and a center section with a list view to display existing products.

Uploaded by

Eya Cheikh
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views

PartieXML TP3JavaFX

The document is an XML file that defines the layout and components of a JavaFX GUI for managing products. It includes a top section with a label, text field and button to add products, and a center section with a list view to display existing products.

Uploaded by

Eya Cheikh
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

<?xml version="1.0" encoding="UTF-8"?

>

<?import java.lang.*?>

<?import java.util.*?>

<?import javafx.scene.*?>

<?import javafx.scene.control.*?>

<?import javafx.scene.layout.*?>

<?import javafx.geometry.Insets?>

<?import javafx.collections.FXCollections?>

<BorderPane xmlns:fx="http://javafx.com/fxml/1" fx:controller="GestionProduit.LayoutControleur" >

<top>

<HBox spacing="10">

<padding >

<Insets left="10" top="10" right="10" bottom="10" ></Insets>

</padding>

<children>

<Label text= "Produits"> </Label>

<TextField fx:id="textFieldNom"></TextField>

<Button text="Ajouter" onAction="#addProduits" ></Button>

</children>

</HBox>

</top>

<center>

<VBox spacing="10">

<padding>

<Insets left="10" top="10" right="10" bottom="10" ></Insets>

</padding>

<ListView fx:id="listView1">
<items>

<FXCollections fx:factory="observableArrayList">

<String fx:value="Ordinateur Dell"/>

<String fx:value="Imprimante Canon"/>

</FXCollections>

</items>

</ListView>

</VBox>

</center>

</BorderPane>

You might also like