null considered harmfulQuick ... what is the last parameter in the following code? dlg.create(width, height, "File not readable", null, null); How about this one? dlg.create(width, height, "File not readable", Icon.NONE, SoundClip.NONE); There is an alternative to the heavy usage of public class SoundClip
{
public final static SoundClip NONE = null;
// ... rest of class
}
And use This takes better use of type safety/checking in Java, and makes code much easier to read. |
|