So the only differences between my code and the narrator's in the video are the interfaces (I have Netbeans, he uses Eclipse), and one line of code he said was unnecessary. Watch it here, if that helps. Thank you
package pixelgen;
import java.awt.Canvas;
import java.awt.Dimension;
import javax.swing.JFrame;
public class PixelGen extends Canvas implements Runnable {
public static final int HIGH = 120;
public static final int WIDE = 120;
public static final int SCALE = 3;
public static final String NAME = "PixelGen";
@Override
public void run(){
}
public static void main(String[] args) {
PixelGen game = new PixelGen();
game.setPreferredSize(new Dimension(WIDE * SCALE, HIGH * SCALE));
game.setMaximumSize(new Dimension(WIDE * SCALE, HIGH * SCALE));
game.setMinimumSize(new Dimension(WIDE * SCALE, HIGH * SCALE));
JFrame frame = new JFrame(NAME);
frame.add(game);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.pack();
frame.setVisible(true);
frame.setResizable(true);
}
}