• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Toolbar

 
Elizabeth Luckose
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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]

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic