Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.awt.*;
- import javax.swing.*;
- public class Principal extends JFrame {
- public Principal() {
- super("Média Simples");
- this.setSize(300, 200);
- Container c = getContentPane();
- MyPanel janela = new MyPanel();
- c.add(janela);
- setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
- this.setVisible(true);
- }
- public static void main(String[] args) {
- new Principal();
- }
- }
Add Comment
Please, Sign In to add comment