Cursor () { if (INVERTED_TEXT_CURSOR == null) { Toolkit toolkit = Toolkit.getDefaultToolkit(); // will also load text@2x.png Image cursorImage = toolkit.getImage(MacUIUtil.class.getClassLoader().getResource("mac/text.png")); INVERTED_TEXT_CURSOR = toolkit.createCustomCursor(cursorImage, new Point(15, 13), "InvertedTextCursor"); } return INVERTED_TEXT_CURSOR; }