• ¿Documento equivocado? Cámbialo gratis
  • Escrito por estudiantes que aprobaron
  • Inmediatamente disponible después del pago
  • Leer en línea o como PDF
Vender
¿Dónde estudias?
Tu idioma
Document preview thumbnail
Vista previa 2 fuera de 12 páginas
Notas de lectura

Deep notes of Advanced Java Programming

Document preview thumbnail
Vista previa 2 fuera de 12 páginas

There are too many books of advanced java programming are available on internet but you cannot gain whole knowledge in few days. If you purchase this notes, you got understand deep points in advanced java programming!!

Vista previa del contenido

Advanced Java Notes
1.1 Component, Container, window, frame, panel

➢ AWTEventMulticaster - Dispatches events to multiple listeners.
➢ Canvas - A blank, semantics-free window.
➢ Container - : A subclass of Component that can hold other
components.
➢ Cursor - : Encapsulates a bitmapped cursor.
➢ Dialog - : Creates a dialog window.
➢ Dimension - : Specifies the dimensions of an object. The width
is stored in width, and the height is stored in height.
➢ Event - : Encapsulates events.
➢ EventQueue - : Queues events.
➢ FileDialog -: Creates a window from which a file can be
selected.
➢ Font - : Encapsulates a type font.
➢ FontMetrics - : Encapsulates various information related to a
font. This information helps you display text in a window
➢ Panel The simplest concrete subclass of Container.
➢ Compoenent is an abstract class
➢ A Component object is responsible for remembering the current
foreground and background colors and the currently selected
text font.
➢ A container is responsible for laying out (that is, positioning)
any components that it contains. It does this through the use of
various layout managers

, 1.2 AWT Components and Layout Managers
➢ AWT – Abstract Windowing ToolKit
➢ Buttons in AWT are also called as Push Buttons
➢ Add() method is defined by container
➢ Remove() and RemoveAll() are the two methods defined by
container. Remove(Component obj) method is used to remove
a control of specified Component obj. And RemoveAll() is used
to Remove the controls of all components.
➢ Label is Passive Component.
➢ Label Constructors –
• Label( ) throws HeadlessException Example – Label();
• Label(String str) throws HeadlessException Example –
Label(“Aneesh”);
• Label(String str, int how) throws HeadlessException
Example – Label(“Aneesh”, Label.LEFT)
➢ There are 3 types of alignments of lables – LEFT, RIGHT,
CENTER
➢ setAlignment() is used to set alignment of the label
➢ getAlignment() is used to get alignment of the label
➢ Button() throws HeadlessException
➢ Button –: Listener - ActionListener() Method –
actionPerformed() Event - ActionEvent

Libro relacionado
 image
Editorial: 2002 ISBN: 9780072228588 Edición: Desconocido

Información del documento

Subido en
10 de septiembre de 2021
Número de páginas
12
Escrito en
2021/2022
Tipo
Notas de lectura
Profesor(es)
Aneesh
Contiene
Todas las clases
$3.99

¿Documento equivocado? Cámbialo gratis Dentro de los 14 días posteriores a la compra y antes de descargarlo, puedes elegir otro documento. Puedes gastar el importe de nuevo.
Escrito por estudiantes que aprobaron
Inmediatamente disponible después del pago
Leer en línea o como PDF

Vendido
1
Seguidores
1
Artículos
1
Última venta
5 año hace



Por qué los estudiantes eligen Stuvia

Creado por compañeros estudiantes, verificado por reseñas

Calidad en la que puedes confiar: escrito por estudiantes que aprobaron y evaluado por otros que han usado estos resúmenes.

¿No estás satisfecho? Elige otro documento

¡No te preocupes! Puedes elegir directamente otro documento que se ajuste mejor a lo que buscas.

Paga como quieras, empieza a estudiar al instante

Sin suscripción, sin compromisos. Paga como estés acostumbrado con tarjeta de crédito y descarga tu documento PDF inmediatamente.

Student with book image

“Comprado, descargado y aprobado. Así de fácil puede ser.”

Alisha Student

Preguntas frecuentes