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
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
Code Comments
I am a firm believer in code comments among other things. So when I came across a blog post at http://blog.jooq.org/2013/12/04/when-source-code-comments-indicate-trouble/ talking about amusing comments coders leave in their code for people to find later I followed the links and found this: Continue reading “Code Comments”
Using JTree to display a hierarchy
In this tutorial we will take a look at displaying JTree information in a hierarchy. We will introduce the Tree Node object that works alongside JTree. As we go through the tutorial we will see how the Tree Node handles the tree data and the JTree takes care of displaying the information. Continue reading “Using JTree to display a hierarchy”
Select files using file filters
In this tutorial we walk through the files in a file system. As we go through the directories and sub directories we identify specific file types using file filters. In this example image files of various formats are selected. Continue reading “Select files using file filters”