0

In eclipse I made a project inside the src folder. I made a package called res inside it I put all of the html/gif files.

Can someone please give me the line of code that would change button with the new location?

setIcon(new ImageIcon("Back24.gif")); 

Can also please provide an example of doing the same thing with an HTML file called index.html in the same location as the icon?

htmlPane.setPage("file:\\" +path +"\\Contents.html");

I would also like to ask if I create a jar with all of these resource files inside and I take that jar to another PC would it still find and load these resource?

Andrew Thompson
  • 168,117
  • 40
  • 217
  • 433
ribarcheto94
  • 436
  • 11
  • 25

0 Answers0