Skip to content

Instantly share code, notes, and snippets.

@Da9el00
Da9el00 / Controller.java
Last active May 12, 2022 10:45
Morse Code Translator
package sample;
import javafx.fxml.FXML;
import javafx.scene.control.TextArea;
import javafx.scene.input.KeyEvent;
public class Controller {
@FXML
private TextArea textInput;
@Da9el00
Da9el00 / Main.java
Created September 24, 2021 14:25
How to connect to An API using Java
import org.json.simple.JSONArray;
import org.json.simple.JSONObject;
import org.json.simple.parser.JSONParser;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.Scanner;
public class Main {
@Da9el00
Da9el00 / APIConnector.java
Created September 25, 2021 14:47
JavaFX weather app setuop using maven
package org.example;
import org.json.simple.JSONArray;
import org.json.simple.JSONObject;
import org.json.simple.parser.JSONParser;
import java.net.HttpURLConnection;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.Scanner;
@Da9el00
Da9el00 / Controller.java
Created October 7, 2021 08:08
JavaFX and Scene Builder - Curved Text
package sample;
import javafx.animation.Interpolator;
import javafx.animation.PathTransition;
import javafx.animation.Transition;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.geometry.Point2D;
@Da9el00
Da9el00 / index.html
Created October 25, 2021 17:52
Web Development: JQuery - add and remove components from list
<!DOCTYPE html>
<html lang="en">
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script src="list.js"></script>
<title>Document</title>
</head>
<body>
<div class="fruits">
@Da9el00
Da9el00 / Controller.java
Created November 4, 2021 08:33
JavaFX and Scene Builder - Option Picker
package sample;
import javafx.collections.ObservableList;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.scene.Node;
import javafx.scene.control.Button;
import javafx.scene.layout.VBox;
import javafx.scene.text.Text;
@Da9el00
Da9el00 / Controller.java
Created November 10, 2021 15:19
Quadratic Equation Solver
package sample;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.scene.control.TextArea;
import javafx.scene.control.TextField;
import java.util.ArrayList;
import java.util.List;
import java.util.regex.Matcher;
@Da9el00
Da9el00 / Animal.Java
Created November 23, 2021 18:21
JavaFX and Scene Builder - Edit TableView
package sample;
public class Animal {
private int id;
private String type;
private String name;
public Animal(int id, String type, String name) {
this.id = id;
@Da9el00
Da9el00 / Controller.java
Created December 3, 2021 18:48
Magic 8-ball
package sample;
import javafx.fxml.FXML;
import javafx.scene.image.ImageView;
import javafx.scene.input.MouseEvent;
import javafx.scene.layout.AnchorPane;
import javafx.scene.text.Text;
import java.util.Random;
package sample;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.scene.control.Button;
import javafx.scene.image.Image;
import javafx.scene.image.ImageView;
import java.io.File;
import java.util.Random;