Re: protocol question



If you need to load the resource from the classpath, then
this.getClass().getResource() will do the trick. What you need to know to
load it is "Images/foo.gif" and the method returns the location of the
resource (wherever it is found first).

If you know in advance there is a risk of collision (the resource exists
multiple times on the classpath and you don't want to load it from the first
location found), then you better change the location to make it unique...

Or, I don't see the point of your question... :-)


.



Relevant Pages

  • Re: Multilangual : how to?
    ... I use Binary compatible resource dll's for each of my languages. ... > it should load, load it and then get the messages into ... > I could also use a database and have a language table, ... > recompile, but the matter of distribution is still an issue. ...
    (microsoft.public.vb.general.discussion)
  • Re: Multilangual : how to?
    ... > it should load, load it and then get the messages into ... > I could also use a database and have a language table, ... > recompile, but the matter of distribution is still an issue. ... > I know that resource files are the most applicable way ...
    (microsoft.public.vb.general.discussion)
  • Re: problem with load D5 package in D6
    ... have package 'Dolphin Legacy Resource Framework' installed? ... Resource Framework is required to load in old packages and convert view ... !Resource categoriesFor: #accessor!accessing!private! ...
    (comp.lang.smalltalk.dolphin)
  • Re: dynamic menu question
    ... Create a menu at design time and load it dynamically, ... a menu from the resource segment. ... editor, it will be ... delete it from the map. ...
    (microsoft.public.vc.mfc)
  • Re: Load a resource from any namespace in project?
    ... It depends what kind of resource you want to load. ... bitmap it constructor has an ovreload that accepts Type object. ... used only to get the name of the namespace. ...
    (microsoft.public.dotnet.languages.csharp)