Providing quality software engineering content in the form of tutorials, applications, services, and commentary suited for developers.

Posts about Java

How To Clone Java Collections with Streams

This How To features using streams in the Java programming language to make "safe" deep clones of collections of objects.The cloning (aka, copying) of objects in Java has been an arduous task since its inception. Partly due to the way the `Object#clone` method was designed then oddly paired with the `Cloneable` interface and also complicated by the way reference types, or objects, work in concert with collections in OOP based languages.

Beginner's Guide to Gradle for Java Developers

In this tutorial I will be describing how to get up and going quickly with Gradle demonstrating what I feel are the most important concepts and features needed as a Java developer just gettings started with Gradle. Gradle is a powerful, ultra flexible, build system popular in the Java (or more broadly JVM based) development ecosystem. Gradle has many amazing features such as dependency management, build configurations and tasks, with core as well as third party plugins and lots more.

High Level Introduction to Java for Developers

This article is a high level overview of the Java programming language intended for software developers proficient in other languages such as JavaScript, Python, C++, ect. The reader is expected to be familar with general programming constructs and the OOP paradigm. I draw some correlations among other language features here and there but, the intent is not to provide a comparative analysis between Java and other such languages.

JavaFX with Gradle, Eclipse and, Scene Builder on OpenJDK11: Project Setup

The web is a preferred choice for software due to the ubiquity and accessibility of browsers but, exceptions exist necessitating the need for a quality desktop app platform such as the need to lockdown data to a few geographically close computers or desire to restrict internet connectivity from a particular app. Surprisingly, this can be common for high-tech fields like science and medicine which rely on the exceptional Java platform and JavaFX framework for quality desktop software.

JavaFX with Gradle, Eclipse, Scene Builder and OpenJDK 11: Java Coded Components

In this second article I will be building out the Random Number generator app described in the opening blog post to give a gentle introduction of the JavaFX framework. For this article I will be forgoing the use of FXML views and the SceneBuilder design tool to give the reader a taste of how a Java code only approach is done. In the next post I will refactor using SceneBuilder and FXML view files to contrast this approach.

By Adam McQuistan on 07/31/2019

JavaFX with Gradle, Eclipse, Scene Builder and OpenJDK 11: Refactor with FXML and Scene Builder

In this final article of an introductory series on building desktop apps using JavaFX with Gradle, Eclipse, and Scene Builder I refactor the previously built random number app using FXML along with the amazing Scene Builder design tool from Gluon. JavaFX's FXML views provide an excellent way to separate out UI presentation from the behavior and logic coded into controllers and models. When paired with Scene Builder the experience translates into efficient prototyping and full on design of UIs.

How To Build JavaFX Dialogs and Alerts

In this How To article I demonstrate some of the different ways that JavaFX dialogs and alerts are built and controlled. As a learning and exploration aid the code samples in this article have been integrated into a larger JavaFX application, JavaFX Dialog Explorer, that demonstrates usability of the various dialogs and alerts discussed as well as sources the various parts of this article's code snippets along with the official JavaFX 11 documentation using the WebView component.

By Adam McQuistan on 08/12/2019

A Java Web Scraping App with Jsoup and JavaFX

The web has been an entropic explosion of data onto the world and, in recent years it has been shown that enormous value can be gleaned from even seaminly innocuous text data such as the blog post you're reading now. In this article I demonstrate how to use the Jsoup Java library to fetch and parse text data from web pages paired with simple query and display functionality wrapped in a JavaFX desktop app, named ScraperFX, running on OpenJDK 12.