Search:

Type: Posts; User: sakonpure6

Page 1 of 2 1 2

Search: Search took 0.17 seconds.

  1. Re: I can not create an Executable .Jar File

    k thank you
  2. Re: I can not create an Executable .Jar File

    Thanks, this is what I got.
  3. Re: I can not create an Executable .Jar File

    I placed the jar file on my desk top
  4. Re: I can not create an Executable .Jar File

    The command prompt tells me it can not execute.
  5. I can not create an Executable .Jar File

    Hi, I finished my game, and I would like to "publish" it, however when I Export the project alongside the resource files, the jar file does not:
    1-Play the music
    2- Display Pictures
    3- Start the...
  6. Replies
    11
    Views
    130

    Re: How to manipulate a thread?

    ..I don't think it affects the code until the same Thread is recalled where now muted = falsed .
  7. Replies
    11
    Views
    130

    Re: How to manipulate a thread?

    Here is the main.java
    import java.io.File;

    public class main {

    public static void main(String[] args) {

    PlaySound.sound = new File("res/music.wav");
    new...
  8. Replies
    5
    Views
    167

    [SOLVED] Re: g.drawImage(); Not working?

    Thank you all, I fixed the issue.
  9. Replies
    11
    Views
    130

    Re: How to manipulate a thread?

    I believe the code is not executed or perhaps not applied to the specific thread because the music keeps on playing!
  10. Replies
    11
    Views
    130

    Re: How to manipulate a thread?

    but how do i do it? I tried doing PlaySound.mute = true; but it does not work? how would you do it?
  11. Replies
    11
    Views
    130

    Re: How to manipulate a thread?

    I want to set the variable muted to true in the class PlaySound so the music file playing would stop.
  12. Replies
    11
    Views
    130

    How to manipulate a thread?

    I googled a tutorial on playing sounds, and therefore I have developed this class, and when I use it I create a new Thread . This is how I do it:

    PlaySound.sound = new File("Music/Gman_end.wav");...
  13. Replies
    5
    Views
    167

    [SOLVED] Re: g.drawImage(); Not working?

    How do I override painComponent? Can you please provide an example?
  14. Replies
    5
    Views
    167

    [SOLVED] g.drawImage(); Not working?

    Hi, So I am making a game and I created a class called Board which is basically the engine of my game , and I implement it into a JFrame. Now, I have set a Boolean variable "ready_to_end" and if it...
  15. Re: Terminating JFrame after a certain event.

    I get no errors, the programm keeps functioning normally
  16. Terminating JFrame after a certain event.

    Hi, in my game I added a new "board" whcih starts the game. However once I finish the game, I have a boolean varaible and I set it to true. How can I use that variable to dispose of the Jframe I was...
  17. Re: Editing a Text File in Java, a specific part.

    Ohhhh , finally thank you for this reply.
  18. Re: Editing a Text File in Java, a specific part.

    How can I rewrite everythimg back where the txt file wpuld still contain the old data. How do I delete everything inside it?
  19. Editing a Text File in Java, a specific part.

    Let's say I have a map.txt file, and I know what row and column the char I want to change is at. How do I do this?

    Thank you for your time.

    --- Update ---

    Bump, please help me. This is the...
  20. Replies
    9
    Views
    218

    Re: Jlayer, playing mp3!

    Omg I have to be the stupidest guy around. In my volume mixer Java was muted. Thank you so much andbin for your constant feedback, it is highly appreciated.

    Edit: Do you know how to run music at...
  21. Replies
    9
    Views
    218

    Re: Jlayer, playing mp3!

    There is nothing in console view
  22. Replies
    9
    Views
    218

    Re: Jlayer, playing mp3!

    Non at all. The error box in eclipse is empty. Its just that I hear nothing and yes I tested speakers :D
  23. Replies
    9
    Views
    218

    Re: Jlayer, playing mp3!

    Sorry, I did not understand :( , I tried linking the music.mp3 using this method "C:\\Users\\sakonpure6\\Desktop\\Java Projects\\Sounds\res\\music.mp3" still no sound plays? Btw I only added the jar...
  24. Replies
    9
    Views
    218

    Jlayer, playing mp3!

    Hi I downloaded the custom library Jlayer to play a music file, my code has no errors however when I run the program, nothing happens. Why?


    public static void main(String[] args)
    {
    ...
  25. Replies
    15
    Views
    171

    Re: Writing to a txt file from the top.

    In my case , I have coins that the user collects. I want to be able to, when the user collects a coin, it's place to be replaced by a grass sprite. This is represented by the char "g" in the map .txt...
Results 1 to 25 of 41
Page 1 of 2 1 2