AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Change selected text color in java2/11/2023 ![]() ![]() ![]() Within AWT, a font is specified by its name, style, and point size. 3.1 FontsĪn instance of the Font class represents a specific font to the system. Finally, the SystemColor class (which is new to Java 1.1) provides access to the desktop color scheme. Next, the Color class is used to represent colors and can be used to specify the background color of any object, as well as the foreground color used to display a text string or a shape. The FontMetrics class gives you detailed information about a font, which you can use to position text strings intelligently. First, we discuss the Font class, which determines the font used to display text strings, whether they are drawn directly on the screen (with drawString()) or displayed within a component like a text field. ![]() This chapter introduces the java.awt classes that are used to work with different fonts and colors. ![]()
0 Comments
Read More
Leave a Reply. |