You are on page 1of 3

ADITYA GARDE

Servlet - Servlet is used to create web applications. Servlet uses Java language to create web
applications.

Types of servlet are generic and HTTP

Java AWT-Java AWT (Abstract Window Toolkit) is an API to develop Graphical User Interface
(GUI) or windows-based applications in Java. Java AWT components are platform-
dependent i.e. components are displayed according to the view of operating system.

Why AWT is platform dependent?? ¢ Java AWT calls the native platform (ope g
systems) subroutine for creating API components like TextField, CheckBox, b n,e

Components - All the elements like the button, text fields, scroll bars, ¢ a
components

Container - The Container is a component in AWT that can co


buttons, textfields, labels etc

Types of container —

Window

1. Panel

2. Frame

3. Dialog

Java layout manager - The La


manner.

Types of layout man : . BorderLayout 3. GridLayout 4. CardLayout 5.


GridBagLayout

Java flow layo


one after a

- Thé Java CardLayout class manages the components in such a manner that only
onent is visible at a time.

Java swing - Java Swing is a part of Java Foundation Classes (JFC) that is used to create
window-based applications.

Difference between AWT & Swing Java AWT Java Swing AWT components are
platformdependent. Java swing components are platformindependent. AWT components
are heavyweight. Swing components are lightweight. AWT doesn't support pluggable look
and feel. Swing supports pluggable look and feel. AWT provides less components than

GARDE
ADITYA GARDE

Swing. Swing provides more powerful components AWT doesn't follows MVC(Model View
Controller) Swing follows MV

What is JFC ? ¢ The Java Foundation Classes (JFC) are a set of GUI components which
simplify the development of desktop applications

Advanced Swing Components : « Tabbed Panes « Scroll Panes ¢ Tress ¢ Tables ¢ Progress Ba

Scroll Panes : ¢ A scroll pane is a component that presents a rectangular area in which a
component may be viewed.

Tabbed Panes : ¢ The JTabbedPane class is used to switch between a group o ents
by clicking on a tab with a given title or icon.

JTrees : ¢ The JTree class is used to display the tree structured data o dataye
JTree is a complex component.

Path: The path is the collection of contiguous set of nodes tha ne opmany nodes.
The path is empty or null when the path has not any n¢@

Leaf: This is a special types of node at the end of a path: as not connected to
more nodes.

Root: This is the node of highest point within the hi

Parent: It represents the relationship of node w node.

le class is used to display the data on two dimensional tables of cells.

Event Handling « Any program that uses GUI (graphical user interface) such as Java
application written for windows, is event driven.

The delegation event -The delegation event model provides a standard mechanism for a
source to generate an event and send it to a set of listeners.

Event Listeners ¢ A listener is an object that is notified when an event occurs

ActionEvent e An ActionEvent is generated when a button is pressed, a list item is double-


clicked, or a menu item is selected.
GARDE
ADITYA GARDE

MouseEvent class This event indicates a mouse action occurred in a component. This low-
level event is generated by a component object for Mouse Events and Mouse motion
events.

a key-typed event.-The first kind of event is called a key-typed event.

Java Adapter Classes : ¢ Java adapter classes provide the default implementation of listener
interfaces

Inner Classes —Inner classes are a security mechanism in Java. —Inner class is ss defined
inside other class and act like a member of the enclosing class.

Method-local Inner Class — When an inner class is defined inside the m


it becomes Method local inner class. — Method local inner class can
the method where it is defined and no where else.

An anonymous inner class - An anonymous inner class can b


instance of an object with certain “extras” such as over,
interface, without having to actually subclass a class. « Ar ner classes are useful
in writing implementation classes for listener int

Advantage of java inner classes ¢ Nested cla pecial type of relationship


that is it can access all the members (data me theds) of outer class including
private and still have its own type

onnectivity. ¢ It is a standard Java API for connecting


e data in relational databases. ¢ JDBC works with Java on a

Thin driver ¢ The JDBC type 4 driver, also known as the Direct to Database Pure Java Driver,
is a database driver implementation that converts JDBC calls directly into a vendor- specific
database protocol. ¢ That is why it is known as thin driver. It is fully written in Java language.

GARDE

You might also like