• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

Problem in creating a menu bar...  RSS feed

 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

Im unable to create a menu bar . When i right click i get nothing.
Can anybody help me?
This is the code.....





I get no errors but still not working...
Thanks in anticipation,
 
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is the "menu" in your code a JMenu or JPopupMenu?
JMenu is what you get on top of the frame (e.g. File, Edit, View).
JPopupMenu is what you use for right clicking.
 
sumukha kris
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you for replying .
Now my problem is i need to draw a rectangle using rubberband technique and on the rectangle i need to right click so that it has to give options degrees and color when left-clicked on degrees it should show 5,10,15 as options and colors should show some different set of colors so that when one of the option is selected the spiral has to be drawn within the rectangle for example when 10 and blue color is selected a spiral of angle 10 degree and with color has to be drawn.I'm able to draw a rectangle but held up with menu bar.
To create these menus i need to create Jpop up menu which should open a menu bar and menus later.....

Please help me ....
Thanks in advance,
 
Author and ninkuma
Marshal
Posts: 66806
168
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"sumukha", please check your private messages.
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please go through this tutorial
Try it out. Even then if you run into a problem, post the code which is causing you problems.
Best of luck.
 
sumukha kris
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you so much i went through it and i'm able to do it ....

Thank you once again...
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!