ICT 214 Tutorial Week 6
-
Compile and run some of the examples from the lecture
-
Use a
JSlider
instead of a JLabel
in the program JLabelDemo
-
Use a
JToggleButton
instead of a JButton
in the program JButtonDemo
-
Use a
BorderLayout
to hold a JLabel
in the WEST
and a JTextField
in the CENTER
. How does this behave when resized?
-
Create an nxn grid of labels containing the numbers 1..n.
Try a hard-coded version with n=2 and n=3 and then see if you
can use a loop from 1 to nxn
-
Create a list of 1..nxn and place it to the left of the nxn
grid of the last question
Jan Newmarch (http://jan.newmarch.name)
jan@newmarch.name
Last modified: Tue Apr 1 09:59:49 EST 2008
Copyright ©Jan Newmarch