• 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

GUI menu not changing colors

 
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Borders ---> Lined Border ---> click any size ---> Black
If you click the borders menu bar, then go down and click Lined borders and choose any size then click black, Shouldn't the whole menu turn black? Not sure what I'am doing wrong I followed many examples carefully but not all apply to my code ya know? SO asking you guys if you can help. Line 107-114 is the location where I'm expecting the code to color my menu so take a look at the portion. And the black panel is at lines 22-24. Anything else should be easy to locate with comments if needed.



 
Bartender
Posts: 5465
212
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi Georg,

you put your ActionListener to your JMenu (line 28, f.e.), but you should add your ActionListener to one of your JMenuItems instead
(line 69 and a half, for instance).
Then it should work.

Greetings,
Piet
 
George Avilez
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Awesome thank you =)
 
reply
    Bookmark Topic Watch Topic
  • New Topic