Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何禁用 JToolbar 的拖动?我把它放在一个BorderLayout中。我试图找到一种方法。有没有这样的方法?谢谢
我认为您正在寻找:
toolBar.setFloatable( false);