public static ImageIcon createImageIcon(Image image) {
        if (image == null) {
            return null;
        }

        synchronized (tracker) {
            tracker.addImage(image, 0);
            try {
                tracker.waitForID(0, 0);
            } catch (InterruptedException e) {
                System.out.println("INTERRUPTED while loading Image");
            }
            tracker.removeImage(image, 0);
        }

        return new ImageIcon(image);
    }
Return the amount of space taken up by a highlight border drawn by
<code>drawHighlightBorder()</code>.

@return The <code>Insets</code> needed for the highlight border.
@see #drawHighlightBorder
starter/src/main/java/org/jivesoftware/openfire/launcher/GraphicUtils.java