0% found this document useful (0 votes)
37 views

Advanced Java: Ritik Verma Information Technology 17IT41 3 Year/5 SEM

This document provides an overview of Java, Java AWT, Java Swing, and an example hostel management system project. It discusses that Java is platform independent, object-oriented, and consists of a core language plus commonly available packages. It describes how Java AWT is an API for developing GUI applications, but has platform-dependent components, while Java Swing provides platform-independent and lightweight components. The document outlines some key differences between AWT and Swing. It also includes hierarchy diagrams for Java AWT and Swing. Finally, it lists some APIs used in the example hostel management system project and the development process.

Uploaded by

Are We vevo
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
37 views

Advanced Java: Ritik Verma Information Technology 17IT41 3 Year/5 SEM

This document provides an overview of Java, Java AWT, Java Swing, and an example hostel management system project. It discusses that Java is platform independent, object-oriented, and consists of a core language plus commonly available packages. It describes how Java AWT is an API for developing GUI applications, but has platform-dependent components, while Java Swing provides platform-independent and lightweight components. The document outlines some key differences between AWT and Swing. It also includes hierarchy diagrams for Java AWT and Swing. Finally, it lists some APIs used in the example hostel management system project and the development process.

Uploaded by

Are We vevo
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 12

A project by

Ritik Verma
Information Technology
17IT41
Advanced Java 3rd Year/5th SEM
• Java is platform independent: the same
program can run on any correctly implemented
Java system
• Java is object-oriented:
• Structured in terms of classes, which group
data with operations on that data
• Can construct new classes by extending
existing ones
• Java designed as
• A core language plus
Features of • A rich collection of commonly available
Java packages
• Java can be embedded in Web pages
Java AWT (Abstract Window Toolkit) is an API to
develop GUI or window-based applications in
java.
 Java AWT components are platform-dependent
i.e. components are displayed according to the
JAVA AWT view of operating system. AWT is heavyweight
i.e. its components are using the resources of
OS.
 The java.awt package provides classes for AWT
api such as Text Field, Label, Text Area,
RadioButton, CheckBox, Choice, List etc.
Button

Object Label
Checkbox
Component
Choice
Java AWT List
Hierarchy Container

Window Panel

Applet

Frame Dialog
Example of AWT
Java Swing

Java Swing is a part of Java Foundation Classes (JFC) that


is used to create window-based applications. It is built on the
top of AWT (Abstract Windowing Toolkit) API and entirely
written in java.
Unlike AWT, Java Swing provides platform-independent and
lightweight components.
The javax.swing package provides classes for java swing API
such as JButton, JTextField, JTextArea, JRadioButton,
JCheckbox, JMenu, JColorChooser etc.
Java Swing Java AWT

Java swing components AWT components


are platform-independent. are platform-dependent.

Swing components AWT components


are lightweight. are heavyweight.

Swing supports pluggable AWT doesn't support


look and feel. pluggable look and feel.

Swing provides more AWT provides less


AWT
powerful components such components than Swing. VS
as tables, lists, scrollpanes,
colorchooser, tabbedpane etc. SWING
Swing follows MVC. AWT doesn't follows
MVC(Model View Controller)
where model represents data,
view represents presentation
and controller acts as an
interface between model and
view.
Swing
Hierarchy
Project Hostel Management System
API’s Used
in Project
1 2 3
Sublime / Notepad++ Eclipse MySQL

 Editor for programming  Drag and Dropping Tool for  Creating and Connecting
different API’s used in project. java swing Database to project using
JDBC logics.
 Implementation and Execution  Basic layout of project

4
NetBeans
Process in  It is an integrated development environment for Java.
Making of NetBeans allows applications to be developed from a

Project
set of modular software components called modules.
NetBeans runs on Windows, macOS, Linux and Solaris
Thank You..

You might also like