Here is the code i type to make the screen.
import java.awt.Canvas; import javax.swing.JFrame; public class Main extends Canvas{ private static final long serialVersionUID = 1L; private static final int screenWidth = 800; private static final int screenHeight = 500; public static void main(String[] args) { JFrame f = new JFrame(); Main game = new Main(); f.add(game); f.pack(); f.setSize(screenWidth, screenHeight); f.setTitle("Test"); f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); f.setLocationRelativeTo(null); f.setVisible(true); f.setResizable(false); } }
Ok this opens the window...
But what do i do next...
I am very confused and been trying my best to find my answer but nothing yet
But i am 13 i don't know alot.
So thats why i am asking you
Thank You!