ICT 214 Tutorial Week 6

  1. Compile and run some of the examples from the lecture
  2. Use a JSlider instead of a JLabel in the program JLabelDemo
  3. Use a JToggleButton instead of a JButton in the program JButtonDemo
  4. Use a BorderLayout to hold a JLabel in the WEST and a JTextField in the CENTER. How does this behave when resized?
  5. 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
  6. 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