Find Jobs
Hire Freelancers

BlobSim: Graphics Using an External JAR File

$10-30 USD

Đã hoàn thành
Đã đăng vào hơn 9 năm trước

$10-30 USD

Thanh toán khi bàn giao
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.
Mã dự án: 7081809

Về dự án

1 đề xuất
Dự án từ xa
Hoạt động 9 năm trước

Bạn muốn kiếm tiền?

Lợi ích khi chào giá trên Freelancer

Thiết lập ngân sách và thời gian
Nhận thanh toán cho công việc
Phác thảo đề xuất của bạn
Miễn phí đăng ký và cháo giá cho công việc
Đã trao cho:
Avatar người dùng
A proposal has not yet been provided
$20 USD trong 1 ngày
0,0 (0 nhận xét)
0,0
0,0

Về khách hàng

Cờ của UNITED STATES
Ocala, United States
5,0
8
Phương thức thanh toán đã xác thực
Thành viên từ thg 10 1, 2014

Xác thực khách hàng

Cảm ơn bạn! Chúng tôi đã gửi email chứa đường link để bạn lấy tín dụng miễn phí.
Đã xảy ra lỗi trong khi gửi email của bạn. Hãy thử lại.
Người Dùng Đã Đăng Ký Tổng Số Việc Đã Đăng
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Đang tải xem trước
Đã cấp quyền truy cập vị trí.
Phiên đăng nhập của bạn đã hết hạn và bạn đã bị đăng xuất. Hãy đăng nhập lại.