You are required to plan a picture of a spaceship, and paint it using a JApplet....
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
You are required to plan a picture of a spaceship, and paint it using a JApplet. Applet Viewer: Spaceshipina.JApplet.cl... Applet ☑ Applet started. Step 1: Create a NetBeans project Create a new project called MySpaceship and in your T25 folder. Step 2: Plan your picture Draw a diagram to plan your picture. You should show all image parts with co-ordinates and dimensions. Your spaceship should not be the same as the illustration above, and it must consist of at least three different shapes or lines (i.e. three circles is only one shape). Step 3: Write source code Add a class called spaceship Ina JApplet to your project. Write the Java code so that the image you have planned is painted in a JApplet with the top-left corner at (0,0). Step 4: Test your program Run your program, and take a screen shot. Portfolio requirements: ■ A digital copy of your image plan from step 2 ■ SpaceshipInaJApplet.java from step 3 An image file (.jpg, .gif, or .png) of your screen shot from step 4 You are required to plan a picture of a spaceship, and paint it using a JApplet. Applet Viewer: Spaceshipina.JApplet.cl... Applet ☑ Applet started. Step 1: Create a NetBeans project Create a new project called MySpaceship and in your T25 folder. Step 2: Plan your picture Draw a diagram to plan your picture. You should show all image parts with co-ordinates and dimensions. Your spaceship should not be the same as the illustration above, and it must consist of at least three different shapes or lines (i.e. three circles is only one shape). Step 3: Write source code Add a class called spaceship Ina JApplet to your project. Write the Java code so that the image you have planned is painted in a JApplet with the top-left corner at (0,0). Step 4: Test your program Run your program, and take a screen shot. Portfolio requirements: ■ A digital copy of your image plan from step 2 ■ SpaceshipInaJApplet.java from step 3 An image file (.jpg, .gif, or .png) of your screen shot from step 4
Expert Answer:
Answer rating: 100% (QA)
package GUI import javaappletApplet import javaawt import javaawtevent Defines class SpaceShip exten... View the full answer
Related Book For
Posted Date:
Students also viewed these programming questions
-
The following additional information is available for the Dr. Ivan and Irene Incisor family from Chapters 1-5. Ivan's grandfather died and left a portfolio of municipal bonds. In 2012, they pay Ivan...
-
Case Study: Quick Fix Dental Practice Technology requirements Application must be built using Visual Studio 2019 or Visual Studio 2017, professional or enterprise. The community edition is not...
-
Segment Analysis Winston Sylvester Corporation is a brokerage and financial service company. The company recently provided information about its major business segments as follows (in millions):...
-
Platt Sports Products manufactures and distributes three types of golf clubs: beginners, intermediate, and advanced. The materials used in these clubs increases in each level and allows for more...
-
The Butler-Perkins Company (BPC) must decide between two mutually exclusive projects. Each costs $6,750 and has an expected life of 3 years. Annual project cash flows begin 1 year after the initial...
-
(a) A rectangular loop of wire is \(\ell=800 \mathrm{~mm}\) long and \(w=500 \mathrm{~mm}\) wide. You bend the \(\ell\) sides into a semicircle while keeping the \(w\) sides straight, as shown in...
-
Clopack Company manufactures one product that goes through one processing department called Mixing. All raw materials are introduced at the start of work in the Mixing Department. The company uses...
-
QUESTION TWO a) State and explain five monetary policy instruments used by the central bank to regulate interest rate, inflation rate, exchange rate and the quantity of money in the economy [15...
-
Do you think the google philosophy of management signals a shift in how work is managed? Could this philosophy work in your organization? Would you feel comfortable managing in this type of...
-
A leaky 15-kg bucket is lifted from the ground to a height of 10 m at a constant speed with a rope that weighs 0.9 kg/m. Initially the bucket contains 30 kg of water, but the water leaks at a...
-
The simplico gold mine has a great deal of remaining gold deposits, and you are part of a team that is considering leasing the mine from its owners for a period of 1 0 years. Gold can be extracted...
-
Highly Suspect Corporation has current liabilities of $412,000, a quick ratio of 1.50, inventory turnover of 4.10, and a current ratio of 3.20. What is the cost of goods sold for the company?
-
Choose the riskiest position to take in the stock index options market if the stock market is expected to increase after you finalize the transaction. A . Buy a put option B. Buy a call option C....
-
You are preparing pro forma financial statements for 2 0 2 1 using the percent - of - sales method. Sales were $ 1 0 0 , 0 0 0 in 2 0 2 0 and are projected to be $ 1 2 0 , 0 0 0 in 2 0 2 1 . Net...
-
A class-A pan was set up adjacent to a lake. The depth of water in the pan at the beginning was 77cm. in that week, a rainfall of 37mm came and 15 mm of water was removed from the pan to keep the...
-
What is the purpose of the journal wizard?
-
A company is currently manufacturing at only 60 per cent of full practical capacity, in each of its two production departments, due to a reduction in market share. The company is seeking to launch a...
-
Shown below is a typical cost-volume-profit Required: (a) Explain to a colleague who is not an accountant the reasons for the change in result on this cost-volume-profit chart from a loss at point...
-
The chief executive of your organization has recently seen a reference to zero-based budgeting. He has asked for more details of the technique. You are required to prepare a report for him...
-
From the following figures, compile accounts receivable ledger and accounts payable ledger control accounts for the month, and ascertain what the net balances of the respective ledgers should be on...
-
Why may some people consider this to be incorrect? That is, why is the fact that the control account is kept in the General Ledger not enough to justify saying that the control account is part of the...
-
The financial year of The Better Trading Company ended on 30 November 2014. You have been asked to prepare a Total Accounts Receivable Account and a Total Accounts Payable Account in order to produce...
Study smarter with the SolutionInn App