This is what's it saying when I hover over it
Here's Window.java
Game Garnja Window.jave package com.company; 1 2 3 4 Ослы Dimport java.awt.*; import java.io.Serial; 5 6 7 CD 0 9 public class Game extends Canvas implements Runnable{ @Serial private static final long serialVersionUID = 8964385898670838416L; public static final int WIDTH = 640, HEIGHT = WIDTH / 12 * 9; private Thread thread; 10 11 12 13 public Game() { new Window (WIDTH HEIGHT. Let's build a game this..); 14 1 15 16 17 } public synchronized void start() { 18 19 } public void run() { 20 o e 21 22 D } 23 24 D public static void main(String[] args) { new Game(); 25 26 Terminal today 8:29 PM Build 1485 U MacBook Air
Game Samaja Window Java package com.company: 01 A1 A import java.awt.*; import java.io.Serial; public class Game extends Canvas implements Runnable @Serial private static final long serialVersionUID = 8964385890670838416L; public static final int WIDTH = 640, HEIGHT = WIDTH / 12 * 9; private Thread thread; 3D public Game() { new Window (WIDTH, HEIGHT- y"Let's build a game". this..); Cannot resolve constructor 'Window(Int, int, java.lang.String, com.company.Game) } Candidates for new window) are: public synchronized void start() Window(GraphicsConfiguration gc) Window Window(Frame owner) } Window(Window owner, GraphicsConfiguration oc) GAME public void run() { 8 Window(Window owner) a 1 BO CANH 2 } 23 24 D public static void main(String[] args) { new Game(); 25 26 Event Log 14:05 U UTF-8 4 spaces Build 19 PM MacBook Air
Game Window.java Dimport com.company. Game; import javax.swing.*; import java.awt.*; import java.io.Serial; public class Window extends Canvas { @Serial private static final long serialversionUID = -7664022567386286623L; public Window (int width, int height, String title, Game game) { JFrame frame = new JFrame(title); frame.setPreferredSize(new Dimension(width, height)); frame.setMaximumSize(new Dimension(width, height)); frame.setMinimumSize(new Dimension(width, height)); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.setResizable(false); frame.setLocationRelativeTo(null); frame.add(game); frame.setVisible(true); game.start(); } Bulld 13-12 L 1 used MacBook Air
Game Garnja Window.jave package com.company; 1 2 3 4 Ослы Dimport java.awt.*; import java.io.Serial; 5 6 7 CD 0 9 public
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Game Garnja Window.jave package com.company; 1 2 3 4 Ослы Dimport java.awt.*; import java.io.Serial; 5 6 7 CD 0 9 public
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!