완료

java graphics assignment

1. Use the project attached and complete a Java project on memory game similar to the one found at

[url removed, login to view]

You may use first 18 alphabet letters A to R instead of images. (Eventually you may want to figure out how to plot an image on each cell.)

Below is the code format,in which code for the same needed to be written:

//CSC730

//project: Hw12

//date: 12/7/16

//author: (your name)

//purpose:

import java.awt.*;

import javax.swing.*;

import java.awt.event.*;

import [url removed, login to view];

class MatchingCard extends JPanel implements MouseListener {

//array, variable declaration goes here

MatchingCard() {

addMouseListener(this);

}

public void paint(Graphics g) { //automatically called when this window is opended, closed or resized

[url removed, login to view](g); //call method paint() in a super class to clear everything drawn before

for (int i = 0; i < 7; i++) {

[url removed, login to view](50+100*i, 50, 50+100*i, 650);

[url removed, login to view](50, 50+100*i, 650, 50+100*i);

}

}

public void mouseClicked(MouseEvent e) {

Random rand = new Random();

Graphics g = getGraphics();

[url removed, login to view]([url removed, login to view]);

Point p = [url removed, login to view]();

if (p.x < 50 || p.x > 650 || p.y < 50 || p.y > 650)

return;

[url removed, login to view](55, 55, 90, 90); //plot

try { //pousing 4 seconds

[url removed, login to view](4000);

}

catch (InterruptedException i) {

}

[url removed, login to view](getBackground());

[url removed, login to view](55, 55, 90, 90); //erase

int res = [url removed, login to view](null, "play again?: ");

//res = 0 for yes, 1 for no, 2 for cancel

if (res == 0) {

repaint(); //steps for reseting

}

else if (res == 1) {

[url removed, login to view](null, "Bye!!");

[url removed, login to view](0);

}

else;

}

public void mousePressed(MouseEvent e) {

}

public void mouseReleased(MouseEvent e) {

}

public void mouseEntered(MouseEvent e) {

}

public void mouseExited(MouseEvent e) {

}

}

public class Hw12 {

public static void main(String [] args) {

JFrame myWin = new JFrame("Matching Card Game");

MatchingCard myGame = new MatchingCard();

[url removed, login to view](myGame);

[url removed, login to view](720, 750);

[url removed, login to view](100, 100);

[url removed, login to view](true);

[url removed, login to view](JFrame.EXIT_ON_CLOSE);

}

}

기술: 자바, 자바FX, 자바 스크립트

확대 보기: assignment statement java, java clear memory, panel graphics java, java crawler post method, java clear memory buffer, java seam post method, operating systems assignment memory java, assignment core java, assignment driver java, project assignment using java, good graphics java, creating window graphics java, java code simplex method, mortgage calculator assignment gui java, graphics java

고용주 소개:
( 1 리뷰 ) richmond, United States

프로젝트 ID: #12297381

수상자:

abhijitbuet

.................................................................................................................

$40 USD (1일 이내)
(94건의 리뷰)
5.8

이 프로젝트의 입찰 현황은 다음과 같습니다. 입찰자: 5명, 평균 입찰가: $58

aazc5aazc

Hi, I'm a Java expert and have done games before. I've read your description and I can handle it with quality.

$133 USD (1일 이내)
(148 리뷰)
6.5
$60 USD (1일 이내)
(97 리뷰)
6.0
Digitasolutions

................................................................................................................

$136 USD (1일 이내)
(21 리뷰)
4.6
IFI91

Hello, Sir Weebside Inc. is a professional freelancer service provided to worthy clients like you. We can provide our best developers to provide you High-Quality Product with 100% Delivery Rate, 100% Satisfaction. 더 보기

$24 USD (1일 이내)
(35 리뷰)
5.0
Topfreelancer4

Feel fee to contact me [login to view URL] me message to discuss further more details .We provide the comments,images,videos,demos and live sessions in order to help the [login to view URL] payment only after the work done. You ca 더 보기

$30 USD (1일 이내)
(39 리뷰)
4.9
$166 USD (1일 이내)
(12 리뷰)
4.4
sanmanS

Hi, I am a java developer with more than 8 years of experience. I have very good math and computer science background. I have gone through your requirements and I can finish this job quickly and efficiently. Re 더 보기

$35 USD (1일 이내)
(0 리뷰)
0.0