• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to set background of SWT MenuBar

 
Nrapendra Sharma
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everyone ,
Can anyone tell me how can i set background color of a menu Bar (in SWT)
I cant find setBackground method in Menu class...

Regards,
Nrapendra
 
Campbell Ritchie
Sheriff
Posts: 48652
56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's there in JMenuBar because it inherits from JComponent which has a setBackground method, but doesn't appear to be there in MenuBar, presumably because AWT components use the system look-and-feel.
 
Nrapendra Sharma
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
SWT inherit the native look and feel... may be thats why ..
....i want to knw is there any way i can override the default look and feel of menu bar(mainly background color)

Regards,
Nrapendra
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic