ICT 214 Tutorial Week 7

  1. Compile and run some of the examples from the lecture
  2. Create an application with a list and a button. When the button is clicked, get the current selected item from the list and print it to standard output. Use the JList method getSelectedValue()
  3. Write an application which displays a JTextField. Add a listener for key typed events. In this listener, get the character typed using KeyEvent.getKeyChar(), change it to upper case using Character.toUpper() and set he upper case value using KeyEvent.setKeyChar()
  4. Write an application showing three text fields for first name, last name and email. Add a button which when clicked will print all these items.

Jan Newmarch (http://jan.newmarch.name)
Last modified: Tue Apr 8 09:46:30 EST 2008
Copyright ©Jan Newmarch