How to disable dragging of JToolbar? I placed it in a BorderLayout. I tried finding a method. Is there such a method ? THanks
How to disable dragging of JToolbar?
Asked Answered
I think you are looking for:
toolBar.setFloatable( false);
© 2022 - 2024 — McMap. All rights reserved.
21.0.3; OpenJDK 64-Bit Server VM 21.0.3+9-Ubuntu-1ubuntu122.04
the toolbar is floatable regardless of that setting. A workaround is to replace the JToolBar by a JPanel. – Traveler