GeeCON Prague 2014*
The moose likes Swing / AWT / SWT and the fly likes Toolbar Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Toolbar" Watch "Toolbar" New topic
Author

Toolbar

Elizabeth Luckose
Ranch Hand

Joined: Aug 17, 2001
Posts: 32
Hi,
I want to popup a toolbar (like a JPopupMenu) upon clicking a button in a toolbar? Is this possible? If so, please give me a solution
Thanks,
Elizabeth
Shay Gaghe
Ranch Hand

Joined: Sep 03, 2001
Posts: 102
Hi Elisabeth
You havent describe exactly what the situation you want to bring up the popup menu.
You want it to display by mouse over the button or you you want to right click on the button or else�?
Anyway here is a code that let you right clicking on the button and brings up the popup. If its not what you were looking for please let us know.

Shay Gaghe

[This message has been edited by Shay Gaghe (edited November 09, 2001).]
Elizabeth Luckose
Ranch Hand

Joined: Aug 17, 2001
Posts: 32
Hi Shay,
It is for displaying another toolbar instead of popup menu. The toolbar should be displayed just like the popup menu is diplayed
Thanks,
Alice
Originally posted by Shay Gaghe:
[B]Hi Elisabeth
You havent describe exactly what the situation you want to bring up the popup menu.
You want it to display by mouse over the button or you you want to right click on the button or else�?
Anyway here is a code that let you right clicking on the button and brings up the popup. If its not what you were looking for please let us know.

Shay Gaghe

[This message has been edited by Shay Gaghe (edited November 09, 2001).][/B]

Shay Gaghe
Ranch Hand

Joined: Sep 03, 2001
Posts: 102
Hi Alice!
Just for the record, you have to create new instance of JpopupMenu and use it as a container. you can contain what ever you want in this container and it will react as a popup menu:

best regards
Shay Gaghe

[This message has been edited by Shay Gaghe (edited November 11, 2001).]
Elizabeth Luckose
Ranch Hand

Joined: Aug 17, 2001
Posts: 32
Thanks Shay. It was of great help to me.
Originally posted by Shay Gaghe:
[B]Hi Alice!
Just for the record, you have to create new instance of JpopupMenu and use it as a container. you can contain what ever you want in this container and it will react as a popup menu:

best regards
Shay Gaghe

[This message has been edited by Shay Gaghe (edited November 11, 2001).][/B]

 
GeeCON Prague 2014
 
subject: Toolbar