COMSC 110 Introduction to Computer Science I COMSC 110 Introduction to Computer Science Summer Final Project: Java Graphics and GUI Design Due Date: 8am on Friday, 6/18/21 Save your program in a file...

1 answer below »
Prefer to be a basketball theme


COMSC 110 Introduction to Computer Science I COMSC 110 Introduction to Computer Science Summer Final Project: Java Graphics and GUI Design Due Date: 8am on Friday, 6/18/21 Save your program in a file called GUIGroupXXX.java, where XXX is your group number last initials. Each group can have 1-2 members. Description This project involves creating a graphical user interface application, and will be accomplished in two main phases: • Create and test your graphics and GUI in jGrasp; Create and test your GUI Create a graphical user interface with any possible theme or topic: • Sports • Pets • School Spirit • Hobbies It doesn't matter which topic area you pick. Be creative and in good taste. Consider the Magic 8 Ball. Requirements: • Your picture must make use of colors (for a whole list of RGB colors you may refer to: http://www.tayloredmktg.com/rgb/ ), and it must use at least four graphics elements – shapes or images. Make some of your shapes filled and others unfilled. • Your GUI design must have at least 3 different UI controls – Buttons, TestFields, ComboBoxes, etc. and at least one user generated event – button click, mouse click etc. • Clean, well-organized GUI layout (may want to use panes) • Follow style guide and write clean code • Here’s the java FX API: https://docs.oracle.com/javase/8/javafx/api/toc.htm Test your program using jGrasp. After editing, compiling, and testing your program, upload your Java source code (GUIGroupX.java) to the Bridges under Assignments -> Final Project. Extra Credit: A maximum of 10% extra credit will be awarded for projects that go significantly beyond the minimum requirements. Any questions before your presentation should be directed to [email protected]. http://www.tayloredmktg.com/rgb/ https://docs.oracle.com/javase/8/javafx/api/toc.htm mailto:[email protected] Install JavaFX (for GUI work): https://www.youtube.com/watch?v=trAYvIt9mgk · As of Java 11, JavaFX is no longer included in the Java distribution. To use it, you will need to download JavaFX and modify jGRASP compiler flags. Simpler settings for JavaFX will be added in a future jGRASP release. · JavaFX is available here: https://openjfx.io/ or https://gluonhq.com/products/javafx · Download and extract the appropriate JavaFX SDK for your OS. · Follow the instructions at the following site depending on the version of JGrasp you are using. https://www.jgrasp.org/javafx.html Notes for windows users: you need to unzip the downloaded JavaFX package and linked the path of the downloaded folder (maybe one more layer) to the jGrasp.
Answered Same DayJun 15, 2021

Answer To: COMSC 110 Introduction to Computer Science I COMSC 110 Introduction to Computer Science Summer Final...

Shashi Kant answered on Jun 16 2021
150 Votes
BasketBall/Readme
This game is about BasketBall.
This game is in Java language.
There are three files for this game-:
    Main.java, Frame.java and Control.java
Here you have to only compile Main.java file this Mai
n file will call Frame.Java file and will compile that and after some process Frame.java file will call Control.java file and will compile that too.
When we compile Main.java it will create 3 classes-:
    Main.class, Frame.class, Control.class
Now you have to run Main.class this will create a GUI for a game and you have to goal the ball in the basket.
Now to goal you have to hit the ball when ball comes near hoop.
To hit the ball you have to click spacebar.
User will get 5 lives and if he/she miss then each time lives will decrement with 1.
After the lives end new message will display with scores and will say to hit spacebar to restart the game.
BasketBall/swish.wav
BasketBall/Hoop.jpeg
BasketBall/end.wav
BasketBall/ball.jpg
BasketBall/Control.class
public synchronized class Control extends javax.swing.JPanel implements java.awt.event.KeyListener {
private int x;
private int i;
private java.awt.Image ball;
private java.awt.Image hoop;
private int velX;
private int velY;
private int ballX;
private int ballY;
private int lives;
private int goal;
private int miss;
private boolean MOVING;
private boolean ENDOFGAME;
private boolean RESTART;
public void Control(java.awt.Image, java.awt.Image);
protected void paintComponent(java.awt.Graphics);
public boolean checkBall();
public void playSound(int);
public void run();
public void keyPressed(java.awt.event.KeyEvent);
public void keyReleased(java.awt.event.KeyEvent);
public void keyTyped(java.awt.event.KeyEvent);
}
BasketBall/Frame.class
public synchronized class Frame extends javax.swing.JFrame {
private java.awt.Image hoop;
private java.awt.Image ball;
private Control game;
public void Frame();
private void frame();
}
BasketBall/Main.class
public synchronized class Main {
public void Main();
public static void...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here