Search:

Type: Posts; User: chronoz13

Search: Search took 0.08 seconds.

  1. [SOLVED] Re: Class loader , InputStream-AudioStream (method) , returns an AudioStream Objet

    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,...
  2. [SOLVED] Re: Class loader , InputStream-AudioStream (method) , returns an AudioStream Objet

    oh and by the way, thanks for giving me this additional knowledge
  3. [SOLVED] Re: Class loader , InputStream-AudioStream (method) , returns an AudioStream Objet

    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...
  4. [SOLVED] Re: Class loader , InputStream-AudioStream (method) , returns an AudioStream Objet

    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;...
  5. [SOLVED] Re: Class loader , InputStream-AudioStream (method) , returns an AudioStream Objet

    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. */
    ...
  6. [SOLVED] Re: Class loader , InputStream-AudioStream (method) , returns an AudioStream Objet

    :( 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...
  7. [SOLVED] Re: Class loader , InputStream-AudioStream (method) , returns an AudioStream Objet

    public static AudioStream getAudioStream(String path) throws IOException {

    InputStream iStream = SoundEffectSample.class.getResourceAsStream(path);
    AudioStream aStream =...
  8. [SOLVED] Re: Class loader , InputStream-AudioStream (method) , returns an AudioStream Objet

    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...
  9. [SOLVED] Class loader , InputStream-AudioStream (method) , returns an AudioStream Objet

    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...
Results 1 to 9 of 9