Changing key values (1)

import java.awt.*;
import java.awt.event.*;

public class MapKey extends Frame {
 
   public static void main(String argv[]) {
        new MapKey().setVisible(true);
    }

    public MapKey() {
        TextField text = new TextField();
        add(text);      
        pack();

        text.addKeyListener(new ToUpper());
    }
}


Slide 46 ©Copyright 1997 Jan Newmarch