MediaTracker , is it possible to say to it "load all files in this folder" ???

I am using the

public void addImage(Image image, int id)

with my MediaTracker to load pngs for my game. Sometimes you get like hundreds of files in a folder and u constantly add new ones and sometimes rename. This would be much smoother if I could use a regular expression like “read all files in this folder” or at leist “read all png’s”. Is there any way of doing this?

You could try using the methods in java.io.File to get a list of the files in the directory, filter for the ones you want, and simply add them to the MediaTracker as you are now.