javaswinguser-interfaceborder-layoutjtoolbar

How to disable dragging of JToolbar?


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


Solution

  • I think you are looking for:

    toolBar.setFloatable( false);