|
To access the contents, click the chapter and section titles.
Sams Teach Yourself Visual J++ 6 in 21 Days
Q How do you set the font for a Visual J++ Windows application control? A Make sure that the control is selected (youll see the heavy border around it when it is). Find the font property in the Properties window, and click the button on the right side of the field. A file selector will appear. Use the file selector to determine the font that the control will use. Q How can changing fonts enhance your programs? A If your program uses the same font as every other program, its boring for a user. Its also not going to necessarily communicate what you want to communicate. For instance, some programs cry out for large, bold text. Examples of this are programs that issue warnings to usersyou want warnings to stand out. Color also helps you communicate with users. Red tells readers to pay special attention, whereas soft yellow tends to blend in and be less obtrusive. Q Why not just use Label controls instead of drawing with text and changing the font? A Label controls dont give you much control. Its hard to move them around in the window, and harder to center them in the window. All around, drawing with methods such as drawString() and drawChars() gives you far greater control than just adding a label to your program. Review Exercises
|
Products | Contact Us | About Us | Privacy | Ad Info | Home
Use of this site is subject to certain Terms & Conditions, Copyright © 1996-2000 EarthWeb Inc. All rights reserved. Reproduction whole or in part in any form or medium without express written permission of EarthWeb is prohibited. Read EarthWeb's privacy statement. |