import java.awt.*;
import java.awt.event.*;
import javax.swing.*;

public class Testvraag9_8 extends JFrame 
    implements ActionListener {

    private JButton button;
    private int getal1,getal2,max;

    public static void main(String[] args) {
        Testvraag9_8 frame = new Testvraag9_8();
        frame.setSize(400, 300);
        frame.createGUI();
        frame.show();
    }

    private void createGUI() {
        setDefaultCloseOperation(EXIT_ON_CLOSE);
        Container window = getContentPane();
        window.setLayout(new FlowLayout() );

        button = new JButton("Press me");
        window.add(button);
        button.addActionListener(this);
    }

    public void actionPerformed(ActionEvent event) {
        
        getal1 = Integer.parseInt(JOptionPane.showInputDialog("Getal1:"));
        getal2 = Integer.parseInt(JOptionPane.showInputDialog("Getal2:"));
        //bepaal met de statische methode max van de klasse Math
        //het maximum van de twee getallen
        
        //toon het maximum in een uitvoervenster
        
        
    }
}
