https://github.com/hugoquinn2/fxpopup
FxPopup is a JavaFX library simplifies the creation of automatic forms and popup messages with minimal effort. With just a single line of code, developers can generate dynamic forms or display messages, while maintaining the flexibility to use custom views for both functionalities.
https://github.com/hugoquinn2/fxpopup
frontend javafx javafx-application javafx-components javafx-desktop-apps javafx-gui javafx-library library popup responsive responsive-design
Last synced: about 1 month ago
JSON representation
FxPopup is a JavaFX library simplifies the creation of automatic forms and popup messages with minimal effort. With just a single line of code, developers can generate dynamic forms or display messages, while maintaining the flexibility to use custom views for both functionalities.
- Host: GitHub
- URL: https://github.com/hugoquinn2/fxpopup
- Owner: HugoQuinn2
- License: mit
- Created: 2024-12-06T02:52:33.000Z (6 months ago)
- Default Branch: master
- Last Pushed: 2025-03-08T19:53:37.000Z (2 months ago)
- Last Synced: 2025-03-29T05:04:42.103Z (about 2 months ago)
- Topics: frontend, javafx, javafx-application, javafx-components, javafx-desktop-apps, javafx-gui, javafx-library, library, popup, responsive, responsive-design
- Language: Java
- Homepage:
- Size: 464 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
FxPopupFxPopup is a `JavaFX` library that simplifies the creation of automatic forms
and popup messages with minimal effort. With just a single line of code, developers
can generate dynamic forms or display messages, while maintaining the flexibility to
use custom views for both functionalities.## Maven
```xmlio.github.hugoquinn2
fxpopup
1.2.0```
## Gradle
```groovy
repositories {
mavenCentral()
}dependencies {
implementation 'io.github.hugoquinn2:fxpopup:1.2.0'
}
```## Getting started

FxPopup seamlessly injects `XML` code into a JavaFX application to display
notifications to the user. To function correctly, the main container of
the application must be a `StackPane`.
If your root parent is not a `StackPane`, FxPopup will automatically wrap
your root element in a `StackPane` to ensure compatibility.```java
//Example use lib
FxPopup fxPopup = new FxPopup();
fxPopup.add(/*add custom node to window*/);
fxPopup.show(/*stack custom node to window*/);
```
If you want to display automatic forms, FxPopup requires access to the form's model and validation class.
To achieve this, export the relevant modules to FxPopup at yourmodule-info.java
as shown in the following example:```java
module your.app {
requires fxpopup;
opens your.app.forms to fxpopup;
opens your.app.formsController to fxpopup;
}
```## Change Theme
FxPopup by default useSYSTEM
, but you can forceLIGHT
&DARK
theme in forms and popup with setTheme(Theme), example:```java
fxPopup.setGlobalTheme(Theme.DARK); //Theme.LIGHT or Theme.SYSTEM
```