The naked web service

So called because this article puts together all the parts of a web service by hand so that when you use the available tools out there designed to make things easier and quicker you can work out what has gone wrong and how to fix it.

Continue reading “The naked web service”

Advertisements
The naked web service

Java application dynamic configuration using a properties file

Sample screenshot
When I first started out in programming I made the same mistake as I see countless people make when starting.  I wrote code for me and that worked, and that was good enough for me.  As time passed and the code I produced expanded and became more ambitious so my bad habits became more ingrained.  I think it is something we all do; we all go through.  It is not until we encounter an issue, a reason to change, that we appreciate the error of our ways.  Continue reading “Java application dynamic configuration using a properties file”

Java application dynamic configuration using a properties file

Java with SQLite embedded database

If your java desktop application needs to store data in a database between sessions then a good solution is to embed a database into your solution.  What this gives you is an application which installs the database as part of the application, builds the database tables and populates it with any initial data.  This approach avoids the need for the user to install a database separately from the application.

Let’s takes a look at how to you might go about this. Continue reading “Java with SQLite embedded database”

Java with SQLite embedded database

Using JTree to select information

In the previous post we looked at displaying information in a hierarchy using JTree.

JTree Hierarchy using TreeNode
JTree Hierarchy using TreeNode

Now all this is fine but, usually when we use a JTree it is because we want to be able to select an item, one or more.  For our example let us concern ourselves with selecting a single item and displaying the detail associated with that item. Continue reading “Using JTree to select information”

Using JTree to select information