0% found this document useful (0 votes)
7 views2 pages

Manual IF5I AJP 22517-Pages

Uploaded by

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

Manual IF5I AJP 22517-Pages

Uploaded by

SAHIL SHINDE
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Advanced Java Programming (22517)

Layout Types

FlowLayout GridLayout BorderLayout CardLayout GridbagLayout

Understand the default layout for different containers such as Applet, Frame, Panel.
Grid Layout is used to make a bunch of components equal in size and displays them in the
requested number of rows and columns. One component is displayed in each rectangle.
The list of Constructor for GridLayout are:
1. GridLayout(): creates a grid layout with one column per component in a row.
2. GridLayout(int rows, int columns): creates a grid layout with the given rows and
columns but no gaps between the components.
3. GridLayout(int rows, int columns, int hgap, int vgap): creates a grid layout with
the given rows and columns along with given horizontal and vertical gaps if we
give setLayout(null) the default layout is disabled.then we have to use setBounds
method to layout the components.

VIII. Resources required (Additional)–

Nil

IX. Resources used (Additional)

Sr. Name of Broad


Quantity Remarks (If any)
No. Resource Specification
1

X. Program Code: Teacher must assign a separate program statement to group of


3-4 students.
1. Write java Program to Demonstrate Grid of 5* 5
2. Write a program to display The Number on Button from 0 to 9.

Maharashtra state Board of Technical Education 13


Advanced Java Programming (22517)

XI. Result (Output of Code):

...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................

XII. Practical Related Questions


Note: Below given are few sample questions for reference. Teacher must design
more such questions so as to ensure the achievement of identified CO.
1. Give name of default Layout for Different container
2. List the names of BorderLayout regions.
3. Write the default horizontal and vertical gap in FlowLayout
4. Write the use of Insets in border layout.

Maharashtra state Board of Technical Education 14

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy