Creating a GUI in 5 minutes with UiBooster
February 12, 2021Nick

Creating a GUI in 5 minutes with UiBooster

Don't struggle with GUI programming in Java - use UiBooster for easy dialogs

UiBooster is a lean library to create fast and easy dialogs for utility tools. It equips your applications blazing fast with GUI components to increase the comfort for your users.

It's based on Java swing components to run on current JREs without any struggle. This library encapsulates the long and sometimes complicated GUI code and leaves more clarity in your project.

I decided in 2019 to create this project, because I missed something like zenity for my Java applications. It started with a some basic input dialogs, but today I proudly release version 1.10.0 with a lot of new features.

Example form

The most powerful element of UiBooster is the form element. It provides a lot of components which can be use with only one line of code. Moreover the form can be equipped with custom elements, if you need something special.

UiBooster booster = new UiBooster();
FilledForm form = booster.createForm("Personal information")
            .addText("Whats your first name?")
            .addTextArea("Tell me something about you")
            .addSelection(
                    "Whats your favorite movie?",
                    Arrays.asList("Pulp Fiction", "Bambi", "The Godfather", "Hangover"))
            .addLabel("Choose an action")
            .addButton("half full", () -> booster.showInfoDialog("Optimist"))
            .addButton("half empty", () -> booster.showInfoDialog("Pessimist"))
            .addSlider("How many liters did you drink today?", 0, 5, 1, 5, 1)
            .show();

Moreover you have to add the following JitPack-Repository and the dependency to you Maven pom.xml

<repositories>
  <repository>
      <id>jitpack.io</id>
      <url>https://jitpack.io</url>
  </repository>
</repositories>

<dependencies>
  <dependency>
      <groupId>com.github.Milchreis</groupId>
      <artifactId>UiBooster</artifactId>
      <version>1.10.0</version>
  </dependency>
</dependencies>

If you interested to learn more about UiBooster, look at the GitHub page to see all components and dialogs.

A simple warn dialog

A simple confirm dialog

A multiple selection with text input for filtering

A basic color picker

A basic date picker

A dialog window for presenting an exception stacktrace

A list dialog with optional image and subtitle

A table dialog with readable and writeable data

System tray menus are possible, too

Starting a notification in one line of code

Nick

Written by Nick

Professional Code Breaker & GUI kiddy

More ways to Suck at Coding