Creating Different Programs-Java Network Programming-Lab Assignment, Exercises of Java Programming

This lab assignment was given by Sharad Verma at Baddi University of Emerging Sciences and Technologies to make us understand Java Network Programming course. It includes: Programs, COdes, Constructors, Grid, Layout, Calculator, Border, JBUilder, Design, Tool

Typology: Exercises

2011/2012

Uploaded on 07/07/2012

virat
virat 🇮🇳

5 documents

1 / 1

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
J
Ja
av
va
a
P
Pr
ro
og
gr
ra
am
mm
mi
in
ng
g
D
Da
ay
y-
-0
05
5
E
Ex
xe
er
rc
ci
is
se
e-
-0
01
1
A
A
Ac
c
ct
t
ti
i
iv
v
vi
i
it
t
ty
y
y1
1
1.
.
.
Create the programs you learnt today using the code given in the slides
A
A
Ac
c
ct
t
ti
i
iv
v
vi
i
it
t
ty
y
y2
2
2.
.
.
Try different methods given in the slides
A
A
Ac
c
ct
t
ti
i
iv
v
vi
i
it
t
ty
y
y3
3
3.
.
.
Try different constructors given in the slides
Do not use JBuilder Design Tool for these activities
A
A
Ac
c
ct
t
ti
i
iv
v
vi
i
it
t
ty
y
y4
4
4.
.
.
Re-design the calculator using grid layout
A
A
Ac
c
ct
t
ti
i
iv
v
vi
i
it
t
ty
y
y5
5
5.
.
.
Re-design the calculator using two panels as follows
Create an applet
Create two panel object
Set layout of your applet to BorderLayout
Set layout of panel1 to BorderLayout
Set Layout of panet2 to Grid Layout
Create a text field and add it to panel1 in center
Create buttons for calculator and add to the panel2
Add panel1 to your applet in north
Add panel2 to your applet in center
Compile and view the results
A
A
Ac
c
ct
t
ti
i
iv
v
vi
i
it
t
ty
y
y6
6
6.
.
.
Re-design your calculator using null layout
A
A
Ac
c
ct
t
ti
i
iv
v
vi
i
it
t
ty
y
y7
7
7.
.
.
Repeat activities 1-5 using JBuilder design tool
Do not use JBuilder design tool for the following activities
A
A
Ac
c
ct
t
ti
i
iv
v
vi
i
it
t
ty
y
y8
8
8.
.
.
Create a simple application from the code given in the slide, try both of the methods
A
A
Ac
c
ct
t
ti
i
iv
v
vi
i
it
t
ty
y
y9
9
9.
.
.
Set the layout of your frame and add few components, follow the steps that you
followed for adding components in an applet
A
A
Ac
c
ct
t
ti
i
iv
v
vi
i
it
t
ty
y
y1
1
10
0
0.
.
.
Try various layout and components
A
A
Ac
c
ct
t
ti
i
iv
v
vi
i
it
t
ty
y
y1
1
11
1
1.
.
.
Use JBuilder design tool to re-create your application
docsity.com

Partial preview of the text

Download Creating Different Programs-Java Network Programming-Lab Assignment and more Exercises Java Programming in PDF only on Docsity!

J

J

a

a

v

v

a

a

P

P

r

r

o

o

g

g

r

r

a

a

m

m

m

m

i

i

n

n

g

g

D

D

a

a

y

y

E Exxeerrcciissee-- 0011

A

A

A

c

c c t

t t i

i i v

v v i

i i t

t t y

y y 1

Create the programs you learnt today using the code given in the slides

A

A

Ac

c c t

t ti

i iv

v v i

i it

t ty

y y 2

Try different methods given in the slides

A

AA

c

cc t

tt i

ii v

vv i

ii t

tt y

yy 3

Try different constructors given in the slides

Do not use JBuilder Design Tool for these activities

A

AA

c

cc t

tt i

ii v

vv i

ii t

tt y

yy 4

Re-design the calculator using grid layout

A

A

A

c

c c t

t t i

i i v

v v i

i i t

t t y

y y 5

Re-design the calculator using two panels as follows

 Create an applet

 Create two panel object

 Set layout of your applet to BorderLayout

 Set layout of panel1 to BorderLayout

 Set Layout of panet2 to Grid Layout

 Create a text field and add it to panel1 in center

 Create buttons for calculator and add to the panel

 Add panel1 to your applet in north

 Add panel2 to your applet in center

 Compile and view the results

A

A

Ac

c c t

t ti

i iv

v v i

i it

t ty

y y 6

Re-design your calculator using null layout

A

AA

c

cc t

tt i

ii v

vv i

ii t

tt y

yy 7

Repeat activities 1 - 5 using JBuilder design tool

Do not use JBuilder design tool for the following activities

A

A

Ac

c c t

t ti

i iv

v v i

i it

t ty

y y 8

Create a simple application from the code given in the slide, try both of the methods

A

AA

c

cc t

tt i

ii v

vv i

ii t

tt y

yy 9

Set the layout of your frame and add few components, follow the steps that you

followed for adding components in an applet

A

A

Ac

c c t

t ti

i iv

v v i

i it

t ty

y y 1

Try various layout and components

A

AA

c

cc t

tt i

ii v

vv i

ii t

tt y

yy 1

Use JBuilder design tool to re-create your application

docsity.com