0% found this document useful (0 votes)
25 views1 page

Java AWT Graphics Programming Guide

this is java notes chapter 7 frpm text book

Uploaded by

ashunujju
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
25 views1 page

Java AWT Graphics Programming Guide

this is java notes chapter 7 frpm text book

Uploaded by

ashunujju
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

CHAPTER-7 GRAPHICS PROGRAMMING IN JAVA 4HRS 8-MARKS

2MARKS

[Link] is AWT?write any components of AWT?

Ans: AWT, or Abstract Window Toolkit, is a set of application programming interfaces (APIs) used in Java to
create graphical user interfaces (GUIs).

 It provides the basic building blocks for creating windows, buttons, text fields, and other graphical
components.

Components of AWT:[Link].

[Link] bar.

[Link].

[Link].

[Link] are Types of Container?

Ans: [Link]: A top-level window with a title and border. It can contain other AWT components.

2. Panel: A generic container that can hold multiple components. It's often used for grouping components.

3. Dialog: A pop-up window that can be modal (blocking) or non-modal. It's used for interactions that require
user attention.

4. Canvas: A blank rectangular area for drawing graphics and images. It can also serve as a container.

5. Applets: A special type of container for running Java applications within a web browser or applet viewer.

[Link] AWT is Platforn Independent?

Ans: AWT (Abstract Window Toolkit) is considered platform-independent primarily because it is built on the
Java programming language, which is designed to be platform-independent.

Here are the key reasons why AWT achieves this:

1. Write Once, Run Anywhere.


2. Abstraction of Native Components.
3. Consistency Across Platforms.
4. Standardized API.
5. Reduced Platform Dependency

You might also like