When you write an application you set out to make it work. However, quite often once an application is deployed in the field you can encounter problems. Having a log file that can help you trace where the problem lies can be an invaluable tool. Continue reading “Configure Log4J2 with properties file”
Adding encrypted authentication to your application
This tutorial takes a look how authentication works within an application, particularly how passwords are secured in an encrypted manner. This example uses a home built system so that you can see the mechanisms used to securely store passwords. Continue reading “Adding encrypted authentication to your application”
Java application using a properties file
Using a text file to hold configurable values for your application is a great way to provide flexibility without needing to re-compile your code. This tutorial takes you through how to add a properties file to your Java desktop application.
Java with SQLite embedded database
If your java desktop application needs to store data in a database then a good solution is to embed a database into your solution. This tutorial takes you step by step through embedding an SQLite database into your Java desktop application. Continue reading “Java with SQLite embedded database”
Getting started with JTree
JTree is a swing class used to display a tree like structure such as the file directory structure. If we want to create a JTree we could simply call any one of a number of constructors and it would give us a JTree. To demonstrate the point Continue reading “Getting started with JTree”
JTree Select
This tutorial runs through how to change information displayed based on selecting a JTree node. As each tree node is selected the information displayed on the right changes.
The only right way to write code!
I was reading a blog the other day and the author was talking about writing a Java application in 10 minutes as a test. They finished off by saying that even with time to consider the solution they do not think they could improve upon it. When I looked at the code my first thought was “what a mess”, Continue reading “The only right way to write code!”
Math Formula in Java
The challenge in this tutorial is to present a mathematical formulas written in LaTeX within our application. This example makes use of the third party library “JLaTeXMath – A Java API to render LaTeX” Continue reading “Math Formula in Java”
Using JTree to display a hierarchy
In the last post we saw how you can easily create a JTree using an array of strings. The JTree however did not display the values in a hierarchy but displayed all the values at the same level. So in this post we will build our Java Desktop Application using JTree with a hierarchy.
Getting Started With JTree Part 1
JTree is a Swing class used display a tree like structure such as the one shown below.