Coder Social home page Coder Social logo

gregor-gottschewski / modern-dialog-windows Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 467 KB

Modern-Dialogs are JavaFX libraries with modern-looking alerts. They are a user-friendly alternative to the normal JavaFX alerts.

License: GNU General Public License v3.0

Java 83.00% CSS 17.00%
dialog dialog-box java java-library javalibrary library

modern-dialog-windows's Introduction

Modern-Dialog-Windows

Version: 1.1.0 Language: Java Framework: JavaFX JavaFX Version: 19

Modern-Dialog-Windows is a JavaFX library with modern-looking alerts. They are a user-friendly alternative to the normal JavaFX alerts.

Looks Awesome. Is Awesome To Use.

Similar to JavaFX alerts, but with more adaptability.

You can choose between two styles: rounded and classic and the color themes black and white. Modern-Dialog-Windows does not use ButtonsType objects but normal Button objects, which is way simpler to handle.

Based on Stages.

The idea behind Modern-Dialog-Windows is that you can customize everything you want. And to do that, every alert can return a Stage with getStage(). Example: If you want to change the dimensions of the Stage, just add myAlert.getStage().setHeight(200); to your code.

Huge range of alerts

This library not only contains a basic alert but a big collection of seven different alerts. If an alert of your need is not in the library, just create one with the MDialogWindow class. Following is a list of all alerts.

Alerts Overview.

Hierarchy Name Where to use?
1. Superclass MDialogWindow To create your own alerts.
2. MDialogWindow MAlert Basic information or error alert.
2. MDialogWindow MTextInputAlert Ask for input e.g. ask for a document name.
2. MDialogWindow MImageAlert Show an image and give options e.g. share.
2. MDialogWindow MWebAlert Show a website or HTML file e.g. for a login.
2. MDialogWindow MScrollPaneAlert Lot of information in one alert.
3. MScrollPaneAlert MWelcomeAlert Show text with an image in a scroll pane e.g. "What's New?" Screen
3. MScrollPaneAlert MMultiInformationAlert Accordion in a scroll pane with a lot of space e.g. About Screen.

What's New?

Release 1.1.0 (Same, same but different)

โš ๏ธ Before you update: Please read the full changelog, because a few method names changed, however, no functionality was removed.

The new release contains a new alert called MWebAlert which can show websites or HTML files in your alert. This allows you to create log-in alerts or other HTML, CSS and JavaScript based alerts. The backend also changed a lot, however, nothing much changed for you, just use this version like any other before.

Download

Read the official documentation for more help.

JavaFX 19 Downloads

Version Download Current
1.1.0 Download Yes

JavaFX 18 Downloads

Version Download Current
1.1.0 Download Yes
1.0.0 Download No

MAlert Sneak Peek.

Let's create a basic MAlert t could be displayed when a file creation fails:

MAlert mAlert = new MAlert(MAlert.MAlertType.ERROR, "Error"); // error alert with title
mAlert.setHeadline("Error while creating a new file."); // set the headliner
mAlert.setSecondHeadline("Check if you run this application as superuser and try it again."); // set the content text (wrap text is enabled)
mAlert.setInfoText("Error (23) - Contact our customer support if you need further help: +12 345 67890"); // adds some extra information
mAlert.addButton("Try again", event -> System.out.println("I need HEEELP"), true); // adds a button with a text and an ActionEvent (in this case printing something to the console)
mAlert.show(); // shows the stage

Example

You can do the following if you want to make some stage changes, such as changing the alert size or set the resizeable feature to true:

mAlert.getStage().setHeight(100);
mAlert.getStage().setWidth(100);
mAlert.getStage().setResizable(true);

More Screenshots.

MTextInputAlert MTextInputAlert

You want to see Modern-Dialog-Windows in Action?

Here are a few projects who are using Modern-Dialog-Windows. Append this list when your project uses Modern-Dialog-Windows!

Word Guesser uses Modern-Dialog-Windows (Version: 0.1.1): Word Guesser on GitHub

modern-dialog-windows's People

Contributors

gregor-gottschewski avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.