I can't figure it out could you fix it?
Type: Posts; User: MW130
I can't figure it out could you fix it?
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 {
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 )....
Where should I define the setBackground and repaint methods?
ok here is the code..
import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionListener;
import javax.swing.Timer;
It still does not work I made it an action listener
I did and it still doesn't work.
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...
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...