Skip to content

Instantly share code, notes, and snippets.

@Da9el00
Da9el00 / Controller.java
Created April 25, 2021 10:16
Login and register system with encryption
package sample;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.scene.control.CheckBox;
import javafx.scene.control.PasswordField;
import javafx.scene.control.TextField;
import javax.crypto.BadPaddingException;
import javax.crypto.IllegalBlockSizeException;
@Da9el00
Da9el00 / Controller.java
Created April 27, 2021 19:54
AES and TripleDES encryption using JAVA
package sample;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.scene.control.RadioButton;
import javafx.scene.control.TextField;
import javafx.scene.control.ToggleGroup;
import javax.crypto.BadPaddingException;
import javax.crypto.IllegalBlockSizeException;
@Da9el00
Da9el00 / Controller.java
Created April 30, 2021 17:05
Login and register system with MD5 hashing
package sample;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.scene.control.CheckBox;
import javafx.scene.control.PasswordField;
import javafx.scene.control.TextField;
import javax.crypto.BadPaddingException;
import javax.crypto.IllegalBlockSizeException;
@Da9el00
Da9el00 / pom.xml
Last active March 3, 2025 15:28
Plugin to make JavaFX executable jar with Maven
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<shadedArtifactAttached>true</shadedArtifactAttached>
@Da9el00
Da9el00 / Controller.java
Created May 6, 2021 08:34
JavaFX and Scene Builder PieChart controller
package sample;
import javafx.beans.binding.Bindings;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.scene.chart.PieChart;
import java.net.URL;
@Da9el00
Da9el00 / Controller.java
Created May 11, 2021 18:55
JavaFX and Scene Builder BubbleChart
package sample;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.scene.chart.BubbleChart;
import javafx.scene.chart.XYChart;
import java.net.URL;
import java.util.ResourceBundle;
@Da9el00
Da9el00 / LoadingController.java
Created May 14, 2021 15:41
JavaFX and Scene Builder - IntelliJ: Progress Indicator
package sample;
import javafx.application.Platform;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.scene.control.ProgressIndicator;
import javafx.scene.text.Text;
import java.net.URL;
@Da9el00
Da9el00 / Controller.java
Created May 22, 2021 12:28
JavaFX Alert
package sample;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.scene.control.Alert;
import javafx.scene.control.Button;
import javafx.scene.control.ButtonType;
import java.util.Optional;
@Da9el00
Da9el00 / Controller.java
Last active December 21, 2021 11:41
File Chooser
package sample;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.scene.control.TextArea;
import javafx.scene.input.MouseEvent;
import javafx.stage.FileChooser;
import javafx.stage.Stage;
import java.io.File;
@Da9el00
Da9el00 / Controller.java
Created May 28, 2021 15:08
JavaFX JfoeniX dialog
package sample;
import com.jfoenix.controls.JFXButton;
import com.jfoenix.controls.JFXDialog;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.scene.layout.StackPane;
import java.net.URL;