February 2014
Beginner
1248 pages
62h 25m
English
The application of Figs. 12.17–12.18 uses two JCheckBoxes to select the desired font style of the text displayed in a JTextField. When selected, one applies a bold style and the other an italic style. If both are selected, the style is bold and italic. When the application initially executes, neither JCheckBox is checked (i.e., they’re both false), so the font is plain. Class CheckBoxTest (Fig. 12.18) contains the main method that executes this application.
Read now
Unlock full access