• Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem in creating a menu bar...  RSS feed

 
sumukha kris
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,
 
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
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,
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66259
151
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...
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!