Use JOptionPane statically - closes #1