If you want to use the Swing docking infrastructure in your application, some of them already exist:
However, if you mean adding a clean Java dock in the spirit of things like YzDock or others (the GNOME-DO extension is another example), I think you will have no other choice but to do it yourself. Fortunately, there is some prior art (yes, it uses text instead of images, but this is only a JMenuItem / JButton question).
<sub> 1. This site is currently unavailable.
source share