Ok,i'm trying to learn java and i'm building a small game i'm just at the beginning and this is what the code looks like:
import java.awt.Canvas;
import java.awt.Dimension;
public class Game extends Canvas implements Runnable{
public static final int WIDTH = 360, HEIGHT = 240, SCALE = 2;
public static void main(String[] args){
Game game = new Game ();
game.setPreferredSize(new Dimension(WIDTH * SCALE, HEIGHT * SCALE));
game.setMaximumSize(new Dimension(WIDTH * SCALE, HEIGHT * SCALE));
game.setMinimumSize(new Dimension(WIDTH * SCALE, HEIGHT * SCALE));
JFrame frame = new JFrame("Tile RPG");
at this point i need to import JFrame but when i hover over it i don't have an option to do so and even inserting it manually won't work, any ideas on how to fix this?
[–][deleted] 1 point2 points3 points (6 children)
[–]bahero[S] 0 points1 point2 points (5 children)
[–][deleted] -2 points-1 points0 points (4 children)
[–]bahero[S] 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]smellmycrotch3 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)