Question Bank Chapter 01 (ajp)

  • June 2020
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Question Bank Chapter 01 (ajp) as PDF for free.

More details

  • Words: 263
  • Pages: 1
Question Bank

: Advanced Java Programming (9165)

Class

: TYIF / TYCM / TYCO (IF/VI/C)

Chapter No. 01

Introduction to AWT

Review Questions: 4 Marks Questions 1) 2) 3) 4) 5)

6) 7) 8) 9) 10) 11)

12) 13) 14) 15) 16) 17) 18) 19) 20) 21) 22)

Explain the use of Dimension class. How to create a Frame window within an applet? Describe. Is it possible to create a Frame within application? How? State and explain the use of Color class and its methods. Describe use of following methods with example. a) setColor( ) b) setXORMode( ) What are the variables associated with Font class? How can we check how many fonts are available in the computer system? Explain. Describe the use of getFont( ) and setFont( ). Describe the applications of FontMetrics class. Enlist commonly used AWT components. Explain following Checkbox class methods with appropriate examples. a) void setLabel(String str) b) boolean getState( ) State the differences between List and Choice control. Describe any practical application of Scrollbar. Explain the setEchoChar( ) method and state differences between text field and text area. Illustrate different settings of FlowLayout with examples. State the practical use of Insets and GridLayout. How event handling is achieved in Java? Explain. State when the action event, adjustment event, item event and component events are generated? Describe KeyEvent and MouseEvent classes. Why adapter classes are required? Explain inner class and anonymous inner class. State adapter classes and explain what are the advantages of handling events, by extending AWT components?

Question Bank: Advanced Java Programming (9165), Chapter 01

-1-

Related Documents