Skip to content
Snippets Groups Projects
Commit 59e66596 authored by KALLEL Mohamed ali's avatar KALLEL Mohamed ali
Browse files

task 1

parent c3ec27ba
No related branches found
No related tags found
No related merge requests found
package controller.fireFigther;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.scene.control.Button;
import javafx.scene.control.Label;
import javafx.scene.control.Spinner;
import javafx.scene.image.ImageView;
public class ControllerPutElementCountController {
@FXML
private Spinner<Integer> fire;
@FXML
private Spinner<Integer> firefighter;
@FXML
private Spinner<Integer> cloud;
@FXML
private Spinner<Integer> motorisedFireFighter;
@FXML
private Spinner<Integer> mountain;
@FXML
private Spinner<Integer> road;
@FXML
private Spinner<Integer> rockerie;
@FXML
private Button button;
@FXML
private Label cloudLabel;
@FXML
private Label motorisedFireFighterLabel;
@FXML
private Label mountainLabel;
@FXML
private Label roadLabel;
@FXML
private Label rockerieLabel;
@FXML
private ImageView imageView;
@FXML
private void initialize() {
}
@FXML
private void handleButtonClick(ActionEvent event) {
System.out.println("Button clicked!");
}
}
...@@ -4,17 +4,17 @@ ...@@ -4,17 +4,17 @@
<?import javafx.scene.image.*?> <?import javafx.scene.image.*?>
<?import javafx.scene.layout.*?> <?import javafx.scene.layout.*?>
<AnchorPane fx:id="Fire" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="434.0" prefWidth="600.0" xmlns="http://javafx.com/javafx/17.0.2-ea" xmlns:fx="http://javafx.com/fxml/1"> <AnchorPane fx:id="putElementCount" fx:controller="controller.fireFigther.ControllerPutElementCountController" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="434.0" prefWidth="600.0" xmlns="http://javafx.com/javafx/17.0.2-ea" xmlns:fx="http://javafx.com/fxml/1">
<children> <children>
<Spinner fx:id="fire" editable="true" layoutX="106.0" layoutY="31.0" prefHeight="25.0" prefWidth="363.0" /> <Spinner fx:id="fire" editable="true" layoutX="106.0" layoutY="31.0" prefHeight="25.0" prefWidth="363.0" value="10" min="1" max="100" />
<Label layoutX="265.0" layoutY="14.0" text="Fire" /> <Label layoutX="265.0" layoutY="14.0" text="Fire" />
<Label layoutX="245.0" layoutY="64.0" text="Fire Fighter" /> <Label layoutX="245.0" layoutY="64.0" text="Fire Fighter" />
<Spinner layoutX="106.0" layoutY="82.0" prefHeight="25.0" prefWidth="363.0" /> <Spinner fx:id="firefighter" layoutX="106.0" layoutY="82.0" prefHeight="25.0" prefWidth="363.0" value="10" min="1" max="100"/>
<Spinner layoutX="102.0" layoutY="134.0" prefHeight="25.0" prefWidth="363.0" /> <Spinner fx:id="Cloud" layoutX="102.0" layoutY="134.0" prefHeight="25.0" prefWidth="363.0" value="10" min="1" max="100" />
<Spinner layoutX="106.0" layoutY="186.0" prefHeight="25.0" prefWidth="363.0" /> <Spinner fx:id="MotorisedFireFighter" layoutX="106.0" layoutY="186.0" prefHeight="25.0" prefWidth="363.0" value="10" min="1" max="100" />
<Spinner layoutX="102.0" layoutY="234.0" prefHeight="25.0" prefWidth="363.0" /> <Spinner fx:id="Mountain" layoutX="102.0" layoutY="234.0" prefHeight="25.0" prefWidth="363.0" value="10" min="1" max="100"/>
<Spinner layoutX="101.0" layoutY="286.0" prefHeight="25.0" prefWidth="355.0" /> <Spinner fx:id="Road" layoutX="101.0" layoutY="286.0" prefHeight="25.0" prefWidth="355.0" value="10" min="1" max="100"/>
<Spinner layoutX="100.0" layoutY="335.0" prefHeight="25.0" prefWidth="355.0" /> <Spinner fx:id="Rockerie" layoutX="100.0" layoutY="335.0" prefHeight="25.0" prefWidth="355.0" value="10" min="1" max="100"/>
<Button layoutX="229.0" layoutY="376.0" mnemonicParsing="false" prefHeight="55.0" prefWidth="92.0" text="Button" /> <Button layoutX="229.0" layoutY="376.0" mnemonicParsing="false" prefHeight="55.0" prefWidth="92.0" text="Button" />
<Label layoutX="259.0" layoutY="116.0" text="Cloud" /> <Label layoutX="259.0" layoutY="116.0" text="Cloud" />
<Label layoutX="215.0" layoutY="169.0" text="Motorised Fire Fighter" /> <Label layoutX="215.0" layoutY="169.0" text="Motorised Fire Fighter" />
......
...@@ -3,13 +3,11 @@ ...@@ -3,13 +3,11 @@
<?import javafx.scene.control.*?> <?import javafx.scene.control.*?>
<?import javafx.scene.layout.*?> <?import javafx.scene.layout.*?>
<AnchorPane prefHeight="400.0" prefWidth="600.0" xmlns="http://javafx.com/javafx/17.0.2-ea" xmlns:fx="http://javafx.com/fxml/1" fx:controller="controller.controllerMenu"> <AnchorPane prefHeight="400.0" prefWidth="600.0" xmlns="http://javafx.com/javafx/17.0.2-ea" xmlns:fx="http://javafx.com/fxml/1" fx:controller="controller.controllerMenu">
<children> <children>
<Button layoutX="36.0" layoutY="119.0" mnemonicParsing="false" prefHeight="106.0" prefWidth="259.0" text="firefiter" /> <Button fx:id="FireFighter" layoutX="36.0" layoutY="119.0" mnemonicParsing="false" onAction="#FireFighter" prefHeight="106.0" prefWidth="259.0" text="firefiter" />
<Button layoutX="321.0" layoutY="119.0" mnemonicParsing="false" prefHeight="106.0" prefWidth="259.0" text="virus" /> <Button fx:id="Virus" layoutX="321.0" layoutY="119.0" mnemonicParsing="false" onAction="#Virus" prefHeight="106.0" prefWidth="259.0" text="virus" />
<Button layoutX="193.0" layoutY="279.0" mnemonicParsing="false" prefHeight="56.0" prefWidth="231.0" text="play" /> <Button fx:id="Settings" layoutX="541.0" layoutY="14.0" mnemonicParsing="false" onAction="#Settings" prefHeight="41.0" prefWidth="45.0" text="setting" />
<Button layoutX="541.0" layoutY="14.0" mnemonicParsing="false" prefHeight="41.0" prefWidth="45.0" text="setting" /> <Button layoutX="14.0" layoutY="14.0" mnemonicParsing="false" onAction="#exit" prefHeight="35.0" prefWidth="96.0" text="exit" />
<Button layoutX="14.0" layoutY="14.0" mnemonicParsing="false" prefHeight="35.0" prefWidth="96.0" text="exit" />
</children> </children>
</AnchorPane> </AnchorPane>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment