package FirstApplet.FirstApplet.FirstApplet.FirstApplet;

import java.awt.FlowLayout;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JApplet;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JTextField;
import javax.swing.JToggleButton;

public class App extends JApplet{

	public void init(){
		
		getContentPane().setLayout(new GridLayout(2,300));
		
		final JButton b2 = new JButton("click me2");
		final JButton b = new JButton("click me");
		
		b.setEnabled(true);
		
		final JToggleButton t = new JToggleButton("Ciao");
		
		t.addActionListener(new ActionListener() {
			
			public void actionPerformed(ActionEvent e) {
				// TODO Auto-generated method stub
				
			}
		});

		b.setSize(20,20);
		b2.setSize(20,20);

		b.addActionListener(new ActionListener() {
			
			public void actionPerformed(ActionEvent e) {
				// TODO Auto-generated method stub
				b.setText("Clicked!!");
				
			}
		});
		
		getContentPane().add(b,0);
		getContentPane().add(b2,1);
		getContentPane().add(new JLabel("prova"),2);
		getContentPane().add(new JLabel("prova2"),3);
		

	}
}

@@ -443,24 +443,19 @@
 new 
-Grid
+Flow
 Layout(
-2,300
 ));%0D
@@ -1036,24 +1036,214 @@
 %0A%09%09%7D);%0D%0A%09%09%0D%0A
+%09%09b2.addActionListener(new ActionListener() %7B%0D%0A%09%09%09%0D%0A%09%09%09public void actionPerformed(ActionEvent e) %7B%0D%0A%09%09%09%09// TODO Auto-generated method stub%0D%0A%09%09%09%09b2.setText(%22Clicked!!%22);%0D%0A%09%09%09%09%0D%0A%09%09%09%7D%0D%0A%09%09%7D);%0D%0A
 %09%09getContent
@@ -1326,21 +1326,24 @@
 JLabel(%22
-prova
+TextBox1
 %22),2);%0D%0A
@@ -1381,13 +1381,15 @@
 el(%22
-prova
+TextBox
 2%22),

Update App.java