Thx, works great

But I got another problem:
1 2 3 4 5 6
| public static Icon getIcon(String path) { Icon icon = null; icon = new ImageIcon(path); System.out.println(path); return icon; } |
At first, I call the method getIcon, after that, I replace the Icon in the directory and call the method again, but it always returns the old Icon not the one that I pasted.
If I don´t call it at first and replace the Icon in the directory and then call the method, it returns the new Icon that I pasted.
best regards Phibedy