This week's giveaway is in the Threads forum.
We're giving away four copies of Java Concurrency Live Lessons and have Doug Schmidt on-line!
See this thread for details.
Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Preventing Floating ToolBar to be attached in other regions  RSS feed

 
Cleverson Schmidt
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys

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.

Cleverson
 
Cleverson Schmidt
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
no way to do so?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!