Find Jobs
Hire Freelancers

BlobSim: Graphics Using an External JAR File

$10-30 USD

Completed
Posted over 9 years ago

$10-30 USD

Paid on delivery
MUST USE NetBeans IDE 8.0.2 Additional files will be provided later. For this program, you will make use of the "[login to view URL]" external JAR file we demonstrated and discussed in lecture to present a graphic display of various sized blobs moving in different directions, at different rates, and bouncing off the walls of the enclosing graphic container. NetBeans Project Setup 1. Download the [login to view URL] in a new window file and put it in a location where you will not lose track of it. 2. Also download the [login to view URL] in a new window documentation for the classes in [login to view URL], and put this zip file in the same folder as the JAR file. Then, unzip it. This will create a "Blob-javadoc" folder. Find the "[login to view URL]" file in the folder and open it with your favorite web browser. Then bookmark the page. From this page, you will be able to view the Javadocs for all classes in the Blob package. 3. Create a Java application project called "BlobSim" in NetBeans. Edit the "packaging" properties so that the source (.java) files will be included in the JAR file. 4. In the Project Properties for your project, select the "Libraries" category. Then, press the "Add JAR/Folder" button. A dialog will appear where you will be able to find and select the [login to view URL] file on your system. Select it. You should now see that [login to view URL] is included in the "Compile-time Libraries" window on the dialog. Select "OK". Your project is now set up to use Blob.jar. Program Development 5. Create the Java class files for your program. The program should do the following: (a) create 20 blobs; (b) the blobs should start out in random locations on a 400 x 400 drawing surface; (c) the blobs should have random size values that range from 10 to 40 pixels in diameter; (d) the blobs should have motion vectors where the x and y values of the motion vector vary independently of each other, and where each of them can range from -4 to 4. For this assignment, you should need only one simple class with a main method. The class should import the blob package classes that we showed in the examples that were covered in lecture. 6. Run and debug your program until it does what it is supposed to do. 7. Clean and build your program. This will create a [login to view URL] file in the dist folder. You should be able to drill down in the dist folder and see that your source file is included in the JAR file. Program Testing 8. Create a folder called "prog3" on your desktop and put a copy of your [login to view URL] file in this folder. 9. Also create a folder called "lib" inside the prog3 folder and put a copy of the [login to view URL] file in the lib folder. 10. Now, open a command window and navigate to the prog3 folder on your desktop. For most systems, you should be able to get there by entering: "cd Desktop\prog3" on a Windows machine and "cd Desktop/prog3" on a Mac/Linux machine. 11. Now, run your program using the command: "java -jar [login to view URL]". Your program should run. If it does not, fix the problem and keep testing until you meet with success. What to Submit 12. Submit ONLY the [login to view URL] file that was successfully tested in step 11, above.
Project ID: 7081809

About the project

1 proposal
Remote project
Active 9 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
A proposal has not yet been provided
$20 USD in 1 day
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED STATES
Ocala, United States
5.0
8
Payment method verified
Member since Oct 1, 2014

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.