This document contains review questions for Chapter 1 - Introduction to AWT for an Advanced Java Programming class. There are 22 multiple choice questions covering topics like the Dimension class, creating Frames within applets, the Color class and its methods, Font class variables, checking available fonts, FontMetrics applications, common AWT components, Checkbox class methods, differences between List and Choice controls, Scrollbar applications, text field vs text area, FlowLayout settings, uses of Insets and GridLayout, event handling in Java, when different event types are generated, the KeyEvent and MouseEvent classes, why adapter classes are required, inner classes and anonymous inner classes, adapter class advantages, and event handling by extending AWT components.
This document contains review questions for Chapter 1 - Introduction to AWT for an Advanced Java Programming class. There are 22 multiple choice questions covering topics like the Dimension class, creating Frames within applets, the Color class and its methods, Font class variables, checking available fonts, FontMetrics applications, common AWT components, Checkbox class methods, differences between List and Choice controls, Scrollbar applications, text field vs text area, FlowLayout settings, uses of Insets and GridLayout, event handling in Java, when different event types are generated, the KeyEvent and MouseEvent classes, why adapter classes are required, inner classes and anonymous inner classes, adapter class advantages, and event handling by extending AWT components.
This document contains review questions for Chapter 1 - Introduction to AWT for an Advanced Java Programming class. There are 22 multiple choice questions covering topics like the Dimension class, creating Frames within applets, the Color class and its methods, Font class variables, checking available fonts, FontMetrics applications, common AWT components, Checkbox class methods, differences between List and Choice controls, Scrollbar applications, text field vs text area, FlowLayout settings, uses of Insets and GridLayout, event handling in Java, when different event types are generated, the KeyEvent and MouseEvent classes, why adapter classes are required, inner classes and anonymous inner classes, adapter class advantages, and event handling by extending AWT components.
2) How to create a Frame window within an applet? Describe. 3) Is it possible to create a Frame within application? How? 4) State and explain the use of Color class and its methods. 5) Describe use of following methods with example. a) setColor( ) b) setXORMode( ) 6) What are the variables associated with Font class? 7) How can we check how many fonts are available in the computer system? Explain. 8) Describe the use of getFont( ) and setFont( ). 9) Describe the applications of FontMetrics class. 10) Enlist commonly used AWT components. 11) Explain following Checkbox class methods with appropriate examples. a) void setLabel(String str) b) boolean getState( ) 12) State the differences between List and Choice control. 13) Describe any practical application of Scrollbar. 14) Explain the setEchoChar( ) method and state differences between text field and text area. 15) Illustrate different settings of FlowLayout with examples. 16) State the practical use of Insets and GridLayout. 17) How event handling is achieved in Java? Explain. 18) State when the action event, adjustment event, item event and component events are generated? 19) Describe KeyEvent and MouseEvent classes. 20) Why adapter classes are required? 21) Explain inner class and anonymous inner class. 22) State adapter classes and explain what are the advantages of handling events, by extending AWT components?