Matt Reid | Senior Software Developer

Matthew Reid is a software developer and web developer, specialising in Java and JVM, NodeJs and web frameworks. He has a passion for entrepreneurship, company culture and making the world a better place.

Just a quick post today. I was having problems refreshing a JTree and keeping the expanded paths in-tact. Instead of calling reload() on themodel i needed to be calling nodeChanged even if a node is being removed. Here is the snippet:

If you have a listview and the elements get a black background when scrolling, cachecolorhint  is your saviour. Just add the following to the listview xml file

I have changed my post editor to use CLEditorrather than WMeditor which had some problems when editing a post. One feature which is obviosuly really important to me is to be able to include code in pre blocks. Luckily I found this plugin at github which makes it easy to include this...

I have been working on a Spring MVC web app that needed to accept a multi-part file upload (an excel file in this case). There are plenty of examples of handling file uploads with Spring but I couldn’t find a concrete example for a web app that was using a...

I recently found myself needing to embed a velocity template in a project that was being bundled with the web app that I was developing, this meant that the template file would only be accessible from inside a jar file.