Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Can u help me fix this program . package com.BickDev.Game; import java.awt.Canva

ID: 3597557 • Letter: C

Question

Can u help me fix this program .

package com.BickDev.Game;

import java.awt.Canvas;
import java.awt.Dimension;

import javax.swing.JFrame;

import javax.swing.*;
import java.awt.*;
import com.sun.awt.AWTUtilities;
import static java.awt.GraphicsDevice.WindowTranslucency.*;
import java.awt.Desktop;
import java.io.IOException;
import java.net.URI;
import java.net.URISyntaxException;

public class TransparentWindow extends JFrame {

public TransparentWindow() {
initComponents();
}

@SuppressWarnings("unchecked")
private void initComponents() {
setExtendedState(Frame.MAXIMIZED_BOTH);
setResizable(false);
setUndecorated(true);
setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE);
setAlwaysOnTop(true);
System.setProperty("sun.java2d.noddraw", "true");
WindowUtils.setWindowTransparent(this, true);
WindowUtils.setWindowAlpha(this, 0.6f);
}

public static void main(String[] args) {
if(Desktop.isDesktopSupported())
{
Desktop.getDesktop().browse(new URI("h

thats what it should do :  https://findtheinvisiblecow.com/

1.The Program will automatically open up your browser and type in the website.

2.The Program will automatically start the game and find the cow.

3.The Program will follow all the rules above and continue by recognizing that the program found the cow already , and automatically start the game again. Then it will find the cow again, and go in a loop.

Make me a new program with the upove requirments please thx. and it has to be in java

Explanation / Answer

import java.awt.Canvas;
import java.awt.Dimension;

import javax.swing.JFrame;

import javax.swing.*;
import java.awt.*;
import com.sun.awt.AWTUtilities;
import static java.awt.GraphicsDevice.WindowTranslucency.*;
import java.awt.Desktop;
import java.io.IOException;
import java.net.URI;
import java.net.URISyntaxException;

public class TransparentWindow extends JFrame {

public TransparentWindow() {
initComponents();
}

@SuppressWarnings("unchecked")
private void initComponents() {
setExtendedState(Frame.MAXIMIZED_BOTH);
setResizable(false);
setUndecorated(true);
setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE);
setAlwaysOnTop(true);
System.setProperty("sun.java2d.noddraw", "true");
WindowUtils.setWindowTransparent(this, true);
WindowUtils.setWindowAlpha(this, 0.6f);
}

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote