• java

    Creating a MessageBox in Java

    by  • January 5, 2010 • .net, c#, java • 0 Comments

    I wanted to see if there was a Java equivalent of .NET’s MessageBox class. Turns out there is but it’s a little more hidden away as a static method on JOptionPane, so I’ve pasted the code here for referring to it in the future: JOptionPane.showMessageDialog(null,”message”,”title”)); This creates and shows a message dialog with no parent […]

    Read more →

    Jabref exports to Word 2007 XML

    by  • July 31, 2009 • bibtex, java, Word 2007 • 24 Comments

    For those of you who don’t know, Jabrefis an open-source, Java based reference manager that allows you to import citations from a number of sources, in a number of formats, and works natively in Bibtex format, the bibliography format of LaTeX. I’ve been using it extensively in my PhD but only recently have I noticed […]

    Read more →

    Changing Subversion working copy version using Windows and Python 3

    by  • July 30, 2009 • java, subclipse, subversion, windows • 4 Comments

    Made a bit of a boo-boo today… I used the Subclipse plugin regularly within Eclipse to manage my code checkins on my SVN repositories, but I’ve also got TortoiseSVN installed and checked in some modifications to this code using TortoiseSVN, which consequentially upgraded by working copy from Subversion 1.4 to 1.6. When I attempted to […]

    Read more →

    Using an object as key for a hashmap in Java

    by  • July 10, 2008 • java • 1 Comment

    I came across a situation recently where I needed to use an object as a key for as hashmap. According to this Java post all you need to do is to make your class override the Object.equals() and Object.hashCode() methods. I wanted to represent a ‘flow’ in a network, with my contstructor looking something like […]

    Read more →

    Using an older JDK within Eclipse and ant builds (Windows)

    by  • July 10, 2008 • java • 1 Comment

    Sometimes its necessary to use an older JDK for compiling legacy Java applications. One of these is Jist/SWANS, a discrete event simulator which uses the Apache bytecode engineering library (bcel) but was written in the Java 1.4/1.5 era. The .class stucture has changed in the 1.6 version, and development of bcel hasn’t kept up. Heres […]

    Read more →