I am following this guy's video: https://www.youtube.com/watch?v=1gir2R7G9ws. Also, I'm using Netbeans. Each time I run it, like when I tried using preffered size instead of set size, it still outputs a small window.
public class APCSGame extends Canvas implements Runnable{
...
public final int WINWIDTH=1000,WINHEIGHT=500, SCALE=1;;
JFrame frame;
private BufferedImage backgroundMenu=null;
public APCSGame(){
frame=new JFrame("Testing it out boiiiii");
setSize(WINWIDTH*SCALE,WINHEIGHT*SCALE);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setLayout(null);
frame.add(this);
frame.pack();
frame.setResizable(false);
frame.setLocationRelativeTo(null);
frame.setVisible(true);
}
...
public static void main(String[] args) {
new APCSGame().start();
}
}