public class Esame23luglio {

public static void main(String args[]) {
	JButton input1 = new JButton("Ingresso 1");
	JButton input2 = new JButton("Ingresso 2"); 
	JLabel ilab1 = new JLabel("true", 5);
	JLabel ilab2 = new JLabel("true", 5);
	JLabel xor = new JLabel("XOR false", 10);
	JLabel and = new JLabel("AND true", 10);
	JPanel panel = new JPanel();
	JFrame frame= new JFrame("Componente a Ingressi e Uscite");

	frame.setBounds(200, 200, 150, 250);
	frame.setResizable(false);
	Container c = frame.getContentPanel();
	c.add(panel);
	... 
	frame.show(); 
	}
}
