Den 08.06.2011 17:11, skrev Greg Brown:
You might need to set it's size, too. Try calling renderer.setSize(renderer.getPreferredSize()).
That did it! But one problem remains: This approach renders the actual node, Image and Label, but not the background color. That means the text is white, so it is impossible to see it while dragging. The other approach seems to render the whole line the node is on, including the background, so it's legible while dragging.
