• Post Reply Bookmark Topic Watch Topic
  • New Topic

Context Sensitive Floating Toolbars  RSS feed

 
Amit Agarwal
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I want to add context sensitive toolbars in my Application. The main panel has a border layout and I already have 3 toolbars in the "north", "east", and "west", and a status bar in the "south".
I want the context sensitive toolbars to be floating and not replace any of the components on the main panel (JPanel). Is this possible using Swings?
Please help.
------------
Amit
 
Manfred Leonhardt
Ranch Hand
Posts: 1492
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Amit,
Yes, I think it is. Look into using a JDialog to hold your toolbar. It is good because it won't ever go behind the parent window (your main panel) and it is technically a separate window (floating).
It you want a close tie-in with your main panel (i.e., toolBar buttons will make something happen in main panel), then you can use an inner class so that the toolbar dialog can directly alter outer class variables and call the outer class methods.
Good Luck,
Manfred.
 
Amit Agarwal
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you very much Manfred
------------
Amit
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!