Preventing Floating ToolBar to be attached in other regions
posted 12 years ago
I have a JPanel with its layout set to BorderLayout. On the WEST region I have a floatable JToolBar. What I want to do is to prevent this floatable to be attached in other regions of my JPanel other than the WEST region. My application looks very ugly when the user detachs the JToolBar from the WEST region a attach it in the NORTH. Is it possible to prevent that? I don't want to prevent the user to detach the tool bar, just prevent him to reatach it to other regions of my JPanel. Thank you in advance.