import javax.swing.*; import java.awt.*;
public class Finestra
{	public static void main(String[] args)
	{	Font f = new Font("Arial", Font.ITALIC, 30);
		JFrame finestra = new JFrame("Titolo");
		finestra.setDefaultCloseOperation
				(JFrame.DISPOSE_ON_CLOSE);
		Container c = finestra.getContentPane();
		c.setLayout(new FlowLayout());
		JLabel la = new JLabel("Ciao");
		la.setForeground(Color.red);
		la.setFont(f);c.add(la);
		JButton bu = new JButton("OK");
		bu.setBackground(Color.yellow);
		bu.setForeground(Color.red);c.add(bu);
		JTextField te = new JTextField("abc", 5);
		te.setBackground(Color.orange);
		te.setForeground(Color.blue); te.setFont(f);
		c.add(te);
		finestra.setSize(300, 100);
		finestra.setVisible(true);
	}
}
