Tag: Java
-
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.
-
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.
-
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…
-
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…
-
JavaFX 2 Generic Editable Table Cells
A few days ago I wrote an article which gave a more complete example of editable table cells in JavaFX 2.0. In that article I promised another article discussing how to make generic editable tables cells since the first article just expected everything to be a string. I’m fairly happy with this solution to the…
-
Complete JavaFX 2 Editable Table Example
The JavaFX 2 documentation is generally very well written but I found the discussion of the TableView component to be slightly lacking. It demonstrates the construction of a basic table with multi-level column headers and it shows the most basic example of editing. Any real application will want a much more complete handling of cell…
-
JavaFX 2.0 and Maven – Part 4
The final part of the Maven JavaFX build is getting NetBeans to correctly run the application. This, it turns out, is more difficult than I expected. This discussion covers a the problems quite well and is worth a read. I will admit up front that the solution I give here is not pretty, in fact…
-
JavaFX 2.0 and Maven – Part 3
This (hopefully) final instalment of this series of articles on building JavaFX applications with Maven will refine what was done in the previous article. The previous article got us to the point where we were able to build a stand alone JavaFX application this article aims to do that with flare and produce roughly the…
-
JavaFX 2.0 and Maven – Part 2
The previous part of this article covered how to set up a Maven project for JavaFX 2.0 and how to provide the required dependency. This part of the article will show you how to build a runnable jar file.