well sometimes while solving a programmatic problem while waiting and having suggestions like this, will guide you in straighter ideas, than messing up with bunch of headache giving-more thoughts,...
Type: Posts; User: chronoz13
well sometimes while solving a programmatic problem while waiting and having suggestions like this, will guide you in straighter ideas, than messing up with bunch of headache giving-more thoughts,...
oh and by the way, thanks for giving me this additional knowledge
finally!! i solved it! and yes and thank you^:)^! thats what i did, i tried different combinations , file names, file paths, file location and even the code it self
public static void...
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.util.logging.Level;
import java.util.logging.Logger;...
oh sorry, i think i really need to practice my english as well, what i mean is,
a method like this that returns an AudioStream
/** Returns an ImageIcon, or null if the path was invalid. */
...
:( norm im im really messed up, :confused::-&, maybe i should get straight, i should have asked for a simple code that will do the same thing as the method that gets an image through class loader, if...
public static AudioStream getAudioStream(String path) throws IOException {
InputStream iStream = SoundEffectSample.class.getResourceAsStream(path);
AudioStream aStream =...
sorry, what i mean with the error is, when i try to return an audio stream object, it cannot see the part where it was initialized(inside the try block)
it requires me to initialize it, i dont know...
omg i thought i finished everything, i forgot the sound files for the program.
heres a code in a method that returns an ImageIcon using Class loader and getResource(<Strig
/** Returns an...