Search:

Type: Posts; User: MW130

Search: Search took 0.10 seconds.

  1. Replies
    16
    Views
    2,103

    Re: Java animation code

    I can't figure it out could you fix it?
  2. Replies
    16
    Views
    2,103

    Re: Java animation code

    Ok, my new code is:



    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.ActionListener;
    import javax.swing.Timer;

    public class Square extends JFrame {
  3. Replies
    16
    Views
    2,103

    Re: Java animation code

    Ok. I know i'm not supposed to really explicitly ask, but do you think you could make my code work? I know you're one of the best on the site and could do it in an instance(no pun intended :P )....
  4. Replies
    16
    Views
    2,103

    Re: Java animation code

    Where should I define the setBackground and repaint methods?
  5. Replies
    16
    Views
    2,103

    Re: Java animation code

    ok here is the code..





    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.ActionListener;
    import javax.swing.Timer;
  6. Replies
    16
    Views
    2,103

    Re: Java animation code

    It still does not work I made it an action listener
  7. Replies
    16
    Views
    2,103

    Re: Java animation code

    I did and it still doesn't work.
  8. Replies
    16
    Views
    2,103

    Re: Java animation code

    Hey! I redid the code as you asked, and now I only get one error. Could you help me figure out how to fix this error? Below is the code.


    import javax.swing.*;

    import java.awt.*;

    import...
  9. Replies
    16
    Views
    2,103

    Java animation code

    Hello I am new to the forum and hope you can help me I put my code and then the errors I receive thank you so much

    import javax.swing.*;
    import java.awt.*;
    import javax.swing.Timer;
    public...
Results 1 to 9 of 9