ProgressBarsDemo.fxml 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. ~ Copyright (C) 2021 Parisi Alessandro
  4. ~ This file is part of MaterialFX (https://github.com/palexdev/MaterialFX).
  5. ~
  6. ~ MaterialFX is free software: you can redistribute it and/or modify
  7. ~ it under the terms of the GNU Lesser General Public License as published by
  8. ~ the Free Software Foundation, either version 3 of the License, or
  9. ~ (at your option) any later version.
  10. ~
  11. ~ MaterialFX is distributed in the hope that it will be useful,
  12. ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. ~ GNU Lesser General Public License for more details.
  15. ~
  16. ~ You should have received a copy of the GNU Lesser General Public License
  17. ~ along with MaterialFX. If not, see <http://www.gnu.org/licenses/>.
  18. -->
  19. <?import io.github.palexdev.materialfx.controls.MFXProgressBar?>
  20. <?import javafx.geometry.Insets?>
  21. <?import javafx.scene.control.*?>
  22. <?import javafx.scene.layout.*?>
  23. <AnchorPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="400.0"
  24. prefWidth="600.0" stylesheets="@css/ProgressBarDemo.css" xmlns="http://javafx.com/javafx/16"
  25. xmlns:fx="http://javafx.com/fxml/1"
  26. fx:controller="io.github.palexdev.materialfx.demo.controllers.ProgressBarsDemoController">
  27. <Label id="customLabel" alignment="CENTER" layoutX="167.0" layoutY="14.0" prefHeight="26.0" prefWidth="266.0"
  28. text="Progress Bars" AnchorPane.leftAnchor="167.0" AnchorPane.rightAnchor="167.0"
  29. AnchorPane.topAnchor="20.0"/>
  30. <VBox alignment="TOP_CENTER" layoutX="250.0" layoutY="46.0" prefHeight="200.0" prefWidth="100.0" spacing="30.0"
  31. AnchorPane.bottomAnchor="20.0" AnchorPane.leftAnchor="20.0" AnchorPane.rightAnchor="20.0"
  32. AnchorPane.topAnchor="80.0">
  33. <padding>
  34. <Insets bottom="10.0" left="10.0" right="10.0" top="10.0"/>
  35. </padding>
  36. <HBox alignment="CENTER_LEFT" spacing="20.0">
  37. <Label maxWidth="-Infinity" prefHeight="17.0" prefWidth="80.0" text="Indeterminate" HBox.hgrow="ALWAYS"/>
  38. <MFXProgressBar prefWidth="300.0"/>
  39. </HBox>
  40. <HBox alignment="CENTER_LEFT" spacing="20.0">
  41. <Label maxWidth="-Infinity" prefHeight="17.0" prefWidth="80.0" text="Determinate" HBox.hgrow="ALWAYS"/>
  42. <MFXProgressBar fx:id="determinate" prefWidth="300.0" progress="0.0"/>
  43. <Label fx:id="progressLabel"/>
  44. </HBox>
  45. <HBox alignment="CENTER_LEFT" spacing="20.0">
  46. <Label maxWidth="-Infinity" prefHeight="17.0" prefWidth="80.0" text="Customized" HBox.hgrow="ALWAYS"/>
  47. <MFXProgressBar id="custom" prefWidth="300.0"/>
  48. </HBox>
  49. </VBox>
  50. </AnchorPane>