Lol, I had this under my ctr v today.
package spritesheet;
import java.awt.Graphics;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JFrame;
public class Main extends JFrame {
BufferedImage sprite;
public Main(){
setSize(800, 600);
setVisible(true);
setResizable(false);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setLocationRelativeTo(null);
init();
}
private void init(){
}
@Override
public void paint(Graphics g){
}
public static void main(String[] args) {
Main main = new Main();
}
}
I was watching a tutorial on how to make a game, and copied the code. But it didnt work.What are you making? A game? Just curious
This is what I have copied:
http://news.cnet.com/8301-10797_3-57557840-235/want-to-see-what-the-first-gamepad-looked-like/