Create an application that will display a string of text using different fonts. Your application should have three menus. The font-name menu will have five menu items: Serif, SansSerif, Monospaced, Dialog, and DialogInput. The style menu will have three menu items: Plain, Bold, and Italic. The size menu will have four menu items: 10, 12, 18, and 24. When a menu item is chosen, change the font and then repaint the window. Hint: Use the method drawString to display the sample string. Use the expression new Font(type, style, size) to create the font you will display. Refer to the API documentation for the class Font for additional details.

What will be an ideal response?


See the code in Exercise11.java, FontWindow.java.

Computer Science & Information Technology

You might also like to view...

________ operating systems perform specialized functions and can be installed on simple hardware

Fill in the blank(s) with correct word

Computer Science & Information Technology

Which function should be used to mask zero values in templates?

A) VLOOKUP B) IF C) INDEX D) IFERROR

Computer Science & Information Technology

If you wanted to sort the days of the week in their natural order, not alphabetically, you would set up a(n) ________ sort

Fill in the blank(s) with correct word

Computer Science & Information Technology

________ is alternating the background color of rows and/or columns to assist in visually tracking information

Fill in the blank(s) with correct word

Computer Science & Information Technology