Search:

Type: Posts; User: slahsdash

Search: Search took 0.21 seconds.

  1. Re: Trying to make 3 images become random in an Applet. Need help

    The exclamation point is apparently making the image a boolean. can I use this statement as a boolean? I tried inserting the third image but it did not change anything.



    import...
  2. Re: Trying to make 3 images become random in an Applet. Need help

    I was able to figure out how to make the images random but now I can't get the text to only go with the bent tree image.

    here is the new code:




    import java.applet.Applet;
    import java....
  3. Re: Trying to make 3 images become random in an Applet. Need help

    This was the code I sent to him and his reply was one of the first solutions you told me and nothing else was explained.



    import java.applet.Applet;
    import java. awt.*;

    public class...
  4. Re: Trying to make 3 images become random in an Applet. Need help

    I think it would be a bad idea to use code that I have not been taught on this project.


    Any other way around this problem?
  5. Re: Trying to make 3 images become random in an Applet. Need help

    sorry but my course has not covered using println statements yet.
  6. Re: Trying to make 3 images become random in an Applet. Need help

    i was given this example but even this code does not make the images random.



    import java.applet.Applet;
    import java. awt.*;

    public class MyPictures extends Applet {
    ...
  7. Re: Trying to make 3 images become random in an Applet. Need help

    but how do I get the string of text to be only displayed on the third image? the text is also appearing each time i run the applet
  8. Re: Trying to make 3 images become random in an Applet. Need help

    I'm using the first image this time for an example




    import java.applet.Applet;
    import java. awt.*;

    public class MyPictures extends Applet {
    Image action;
  9. Re: Trying to make 3 images become random in an Applet. Need help

    not at the moment because I don't have any image placed in it but whenever I give it a specific image, the applet just shows that image and the string of text
  10. Trying to make 3 images become random in an Applet. Need help

    I need to have 3 images become random with one having a string of text on it. I get the Applet to run and load the image and text but when I restart, the applet just opens up the same image and...
Results 1 to 10 of 10