• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Toolbar

 
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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]


 
After some pecan pie, you might want to cleanse your palatte with this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic