Question: You are to write a program using Java graphics to display nautical signal flags. There are 26 letter signal flags. Each flag is 150 by

You are to write a program using Java graphics to display nautical signal flags. There are 26 letter signal flags. Each flag is 150 by 150 pixels. You only have to implement the six letters I, J, K, P, U and X. The remaining letters have been implemented by your instructor. Your program. must extend the abstract class NauticalFlags. public class MyFlags extends NauticalFlags { public static void main(String[] unused) { MyFlags prog = new MyFlags (): //create object of your program"s class } public void letterl(java.awt.Graphics page) { // call Graphics methods to draw the flag for the letter D } public void letterJ(java.awt.Graphics page) { // call Graphics methods to draw the flag for the letter E } // similarly for the letters K. P. U and X. The methods must have the correct name } You will need to download the NauticalFlags.jar file and save it some place where you can find it, such as your MyDocuments directory. In jGRASP, click on: Settings then PATH/CLASSPATH then Workspace then tab Class then tab Classpaths Click the New button and browse to the directory containing the jar file and select NauticalFlags.jar Press OK
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
