Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Images not showing up in JFace Menu or Toolbar  RSS feed

 
Trevor Whitney
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So, I have two applications. One works with setting up Image descriptors, applying them to actions, and seeing them show up in my menus and toolbars. When the program can't find the image, I get a little red box. In another program, I've set up the descriptors in the exact same way, applied them to the actions in the same way, and added the actions to the menus in the exact same way. Problem is, in the second application, I'm not getting any images, not even red squares, just the tool tip text. I can't for the life of me figure out what is different between the two. Even if I drag the first class into the second project, it still works, but the second program doesn't! I have poured over this, so its time for a second set of eyes. Hope someone can help

Program 1 (working):


Program 2 (not working...main() is in another class, creating this class then other lines are same):


Hope someone can help. Thanks.
 
Trevor Whitney
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The above code is based on the example in this article.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!