Color and Font To draw text to the screen, first I need to create an instance of the Font class. Font objects represent an individual font-that is, its name, the style (bold, italic), and point size (1em-0.75). Font names are strings representing the family of the font, for example, "Arial", "TimesRoman", "Courier", or "Helvetica". Font styles are constants defined by the Font class; I can get to them using the class variables-for example, the Font. PLAIN, BOLD, or Font. Font. ITALIC and font-size as 0.75 children-1em. Finally, the point size is the size of the font, as defined by the font itself; the point size may or may not be the height of the characters. Color is a significant factor to consider when designing a applet. My applet used more than three colors. The applet will be tested to check is the color contrast is appropriated to all types of users. The use of white space and distribution of objects on the applet will be investigated to observe the appropriate place to distribute the objects on the windows of the applet.
đang được dịch, vui lòng đợi..