CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: RajaCode

Page 1 of 3 1 2 3

Search: Search took 0.05 seconds.

  1. Why does this CSS not work?

    I want to change the background color when the user clicks a input field and not all input fields on my form. I want to complete all of this using an external style sheet.

    I created some css but...
  2. Can I use PHP to change the color of a text field when the user clicks it?

    If you have a HTML form and have a text field that when the user clicks on this so that its the one which the user can input data in is there a way of PHP changing the color of the background of the...
  3. Thread: Token error

    by RajaCode
    Replies
    3
    Views
    690

    Re: Token error

    Why doesn't it work with a method? Why cant I just place it into the class without a method?
  4. Thread: Token error

    by RajaCode
    Replies
    3
    Views
    690

    Token error

    I am confused about this problem. The code is syntactically correct however when placing the code into a new class it refuses to compile and brings up errors of token problems.

    Any ideas why...
  5. Replies
    4
    Views
    1,058

    Re: Writting file to Desktop

    Thanks your solution works.
  6. Replies
    4
    Views
    1,058

    [RESOLVED] Writting file to Desktop

    I am trying to write a file to the desktop. First I have determined the location of the desktop and using FileInfo and FileStream attempt to write the file. However my program does not output the...
  7. Replies
    4
    Views
    796

    Program not taking input

    For some reason the program does not understand user input. I can't see what is wrong with this:


    using System;
    using System.IO;
    using System.Runtime.InteropServices;

    namespace Colors
    {
    ...
  8. Poll: Console application : Take user input without pressing enter key

    This is probably really simple but I could not find the answer on the forums or when I "google it".

    I have a console application written in Visual Studio 2005 and I want to take the user's input...
  9. Replies
    2
    Views
    937

    Noob Java Question

    I noticed a semi-colan at the end a }
    why would you need this? And why do you not have a ; at the end of all }

    JFrame frame = new JFrame("FlowLayout Source Demo") {
    public...
  10. Replies
    30
    Views
    10,505

    Re: Adding MP3 playback

    When I move the music.wav file into the same directory the program loads but it loads with out the pictures on the buttons.

    Then I moved the JAR and the music.wav and the 2 gif files and the...
  11. Replies
    30
    Views
    10,505

    Re: Adding MP3 playback

    The JAR works when it is left in this directory however it does not work when you move the JAR to another directory.

    I would like to create the JAR and then distribute it.
  12. Replies
    30
    Views
    10,505

    Re: Adding MP3 playback

    The output gives the current directory of the file :

    D:\Documents and Settings\Ritesh\workspace\PeppaPig

    The program works when the program is being run normally. I use Eclipse and the music...
  13. Replies
    30
    Views
    10,505

    Re: Adding MP3 playback

    When inserting the code :

    System.out.println(System.getProperty("user.direct"));

    in the main function of the class PeppaPig the output is "null"

    public static void main(String args[]){...
  14. Replies
    30
    Views
    10,505

    Re: Adding MP3 playback

    This is the code at line 122 :

    audioInputStream = AudioSystem.getAudioInputStream(soundFile);

    I have included the code that runs after this :

    catch (Exception e)
    {
    /*
    In case...
  15. Replies
    30
    Views
    10,505

    Re: Adding MP3 playback

    music.wav is in the root directory the jar file is quite large at 150kb so I think it must have included it in the JAR but for some reason is not finding the file.

    The program uses the...
  16. Replies
    30
    Views
    10,505

    Re: Adding MP3 playback

    I tried the example and the only thing it added to the jar file was the manifest file! I have zipped the directory structure so that you can view what I have.
    I could not attach it to Codeguru...
  17. Replies
    30
    Views
    10,505

    Re: Adding MP3 playback

    I have got the JAR that worked when all the files are in the directory which worked! I copied this file and placed into a new directory on the C:\ called New Folder.

    I then ran the command at...
  18. Replies
    30
    Views
    10,505

    Re: Adding MP3 playback

    I tried adding a space in the manifest file and that has got me up and running and able to create the jar file! :)

    However the jar file that I create does not work it does not seem to be able to...
  19. Replies
    30
    Views
    10,505

    Re: Adding MP3 playback

    Sorry I could not understand the example that you gave. I tried my version and this was the output :

    D:\PeppaPig>jar -cvfm PeppaPig.jar manifest.txt *
    java.io.IOException: invalid header field
    ...
  20. Replies
    30
    Views
    10,505

    Re: Adding MP3 playback

    If you download the attachment would you be able to create a jar file from it? I understand the main commands of creating the jar but I could not get it to work

    My manifest file would be...
  21. Replies
    30
    Views
    10,505

    Re: Adding MP3 playback

    I got my program to work as mentioned just needed to create the music object and it worked!

    I have attached the program. Thanks for the assistance. I however had a problem creating the jar file...
  22. Replies
    30
    Views
    10,505

    Re: Adding MP3 playback

    OK I did not create the music object - lol

    It works when you create the actual object!
  23. Replies
    30
    Views
    10,505

    Re: Adding MP3 playback

    I tried to amend the code but I still cant get it to work. I get an exception error in my main program. I have 2 classes one is called PeppaPig.java and the other is SimpleAudioPlayer.java.

    I...
  24. Replies
    30
    Views
    10,505

    Re: Adding MP3 playback

    OK The program listed above plays a sound file when you run the command at command prompt. It can only play WAV format and not MP3. I can settle for WAV playback and then move over to MP3 at...
  25. Replies
    30
    Views
    10,505

    Re: Adding MP3 playback

    I found this but I don't understand how to incorporate this.

    http://www.jsresources.org/examples/SimpleAudioPlayer.java.html
Results 1 to 25 of 75
Page 1 of 3 1 2 3





Click Here to Expand Forum to Full Width

Featured