
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;

public class Fibonaccigetallen extends JFrame implements ActionListener {

    private JButton button;
    private JTextArea textArea;

    public static void main(String[] args) {
        Fibonaccigetallen frame = new Fibonaccigetallen();
        frame.setSize(500,300);
        frame.createGUI();
        frame.show();
    }

    private void createGUI() {
        setDefaultCloseOperation(EXIT_ON_CLOSE);
        Container window = getContentPane();
        window.setLayout(new FlowLayout());

        button = new JButton("display");
        window.add(button);
        button.addActionListener(this);

        textArea = new JTextArea(10, 35);
        JScrollPane scrollPane = new JScrollPane(textArea);
        window.add(scrollPane);
    }

    public void actionPerformed(ActionEvent event) {
       
        textArea.setText("");
        
        int getal1 = 1;
        int getal2 = 1;
        int nieuwGetal;
        
       
        textArea.append(getal1+"\n");
        textArea.append(getal2+"\n");
        
        for (int count=3;count<=30;count++) {
        	
        	//vul hier de rest aan...
        	       	
        	
        }
        
        
      
       
    	
    

    
        
       
    }
}

