Welcome to Computer Programming

import java.awt.*;
import javax.swing.*;
import java.awt.event.*;
 
public class BlankSwing extends JApplet implements ActionListener 
{
    //Declare your components globally here
    JTextArea textArea = new JTextArea(5, 20);



    
    public void init()
    {
        Container con = getContentPane();
        con.setBackground(Color.green);
        con.setLayout (new FlowLayout() );
textArea.setEditable(false);
JScrollPane scrollPane = new JScrollPane(textArea); 
con.add(textArea);
textArea.setText("sdfsdfsdfsdfsdf\n \nsdfsdfsdf");        
        //add your components to con
        
        //add any action listeners you want
        
    }
 
    public void paint (Graphics g)
    {
        super.paint(g);
        //now do any painting you want
    }
 
    public void actionPerformed(ActionEvent thisEvent)
    {
        Object source = thisEvent.getSource();
        
        //now have if statements seeing finding out where the action occured
 
    }
}