import java.awt.*;
import java.awt.event.*;
import javax.swing.*;

public class StringToUpperCase extends JFrame
    implements ActionListener {

    private JTextField string1Field, string2Field, string3Field, resultField;
    private JLabel string1Label, string2Label, string3Label, resultLabel;
    private JButton goButton; 

    public static void main(String[] args) {
        StringToUpperCase frame = new StringToUpperCase();
        frame.setSize(250, 250);
        frame.createGUI();
        frame.show();
    }

    private void createGUI() {
        setDefaultCloseOperation(EXIT_ON_CLOSE);
        Container window = getContentPane();
        window.setLayout(new FlowLayout());

        string1Label = new JLabel("Woord: ");
        window.add(string1Label);

        string1Field = new JTextField(20);
        window.add(string1Field);

        resultLabel = new JLabel("result is:    ");
        window.add(resultLabel);

        resultField = new JTextField(20);    
        window.add(resultField);

        goButton = new JButton("do it");
        window.add(goButton);
        goButton.addActionListener(this); 
    }

    public void actionPerformed(ActionEvent event) {
        
       
    }
}


