import javax.swing.*;
import java.awt.BorderLayout;

public class Interface extends JFrame 
{
		public Interface ()
		{
				// operation to do when the window is closed.
    			setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); 
				getContentPane().setLayout(new BorderLayout());
    			getContentPane().add(new JLabel("Minha Primeira Interface"),
       			BorderLayout.CENTER);
    			pack();        
    			setVisible(true);
		}
  		public static void main(String[] args) 
  		{
    			new Interface();
  		}		
 
}

