Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

ImageIcon problems

  Asked By: Jimmy    Date: Jun 11    Category: Java    Views: 493
  

I am working in an application where I have a tool bar with icons.

the structure of the application is

-repository
---gui
------actions
---------images

Well, the thing is that if I say:


public OpenAction() {
super("Open ontologies",new ImageIcon ("images/open.gif"));
}

where the class OpenAction is in the "actions" package, the icon is
not shown, and I do not know hot to set the relative path of the
icon.

I tried with "repository/gui/actions/images/open.gif", but it just
work with Eclipse, but not with NetBeans either.

Share: 

 

No Answers Found. Be the First, To Post Answer.

 
Didn't find what you were looking for? Find more on ImageIcon problems Or get search suggestion and latest updates.




Tagged: