ICT 214 Tutorial Week 7
-
Compile and run some of the examples from the lecture
-
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()
-
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()
-
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)
jan@newmarch.name
Last modified: Tue Apr 8 09:46:30 EST 2008
Copyright ©Jan Newmarch