How to disable dragging of JToolbar?

border-layout, java, jtoolbar, swing, user-interface

Solution

I think you are looking for:

toolBar.setFloatable( false);

Problem

How to disable dragging of JToolbar? I placed it in a BorderLayout. I tried finding a method. Is there such a method ? THanks

Original source