Year: 2012

  • NetBeans License Magic

    As a general rule I don’t include license information at the top of each source file (I’m sure a lawyer would be outraged)  because no one but me should ever see the source. I’ve recently started work on an open source project though so I thought I’d best investigate how to get NetBeans to automatically…

  • Controlling Tab Order in JavaFX2

    I, as I suspect you also do, use the JavaFX Scene Builder to put together your JavaFX interfaces. There’s certainly still work to be done on Scene Builder but even now I prefer it to any of the GUI builders I’ve used in the past for the principal reason that what you see on the…

  • Editing Null Data Values in a Cell with JavaFX 2

    In an earlier article I gave a complete break down of how to write a generic editable table cell. I’ve found versions of this code posted around the place so I thought it was only right that I point out a small flaw and a fix that I believe is safe.

  • Becoming a Website Developer

    So you want to develop websites for a living and you don’t know much about software / web development. Ok, my first piece of advice to you (unless you are really young e.g. still at school) is don’t bother. If you haven’t already learnt how to write web pages using HTML, CSS and JavaScript on…

  • Missing FXML File

    I was recently copying some code from one project to another (yes, we all do it) and I hit a problem – it wouldn’t run. The error message was less than useful as shown below.

  • Improving Joomla Performance

    I recently tested this site using this online website performance tool: Web Page Test and I thought I’d share some of the results and what I did to improve them. You can also try YSlow however this will generally give you a result that is across a LAN rather than a DSL type connection and I’ve noticed it…

  • Validating SAX Parser

    I’ve been working with the built in Java XML libraries quite a bit lately and one of the things I’ve noticed is that there are very few good snippets of what I call recipe code – little bits of code that show you how to complete a specific task. In this article I show you…

  • VerifyError Expecting a stackmap frame

    I’ve just added a couple of new projects to my Hudson CI system and I noticed that one of the projects, which was configured to build with Java 7, had every test fail with an exception. I decided to use Java 7 after I’d already started working on the project so Java 7 features were…

  • Which Java XML Library Should You Use

    In the past I have always used either JDOM or Dom4J to interact with XML but I’ve never really been overly happy with either library. JDOM is very simple to use and great for simple XML structures but as soon as you want to do something a little more complex it becomes hard work. Dom4J…

  • Pretty Printing XML with JAXP

    Java has a wide selection of built in XML handling capabilities but they are little used by most developers because they are felt, unfairly I think, to be difficult to use. I freely admit that I fell into that camp until fairly recently when I became a convert. Over the next few days I hope…

  • Using a Java Web Service Hosted Behind Apache

    I recently set up a new system running most of the software my business produces. Unlike our other sites right from the beginning all of Java servers (a mixture of Tomcat and GlassFish) will be access via Apache using Apache Tomcat Connector mod_jk. Typically we start of will one server and add Apache in later but…

  • Starting and Stopping Services from Java

    Most of the applications I develop are web based and therefore, when deployed on Windows, are running as a service. This is great most of the time but when I want to programmatically control the application it can present some problems because starting and stopping services requires elevated permissions. This article discusses a solution that…