Guest User

Untitled

a guest
Dec 16th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. import java.awt.*;
  2. import javax.swing.*;
  3.  
  4. public class Principal extends JFrame {
  5.  
  6. public Principal() {
  7. super("Média Simples");
  8. this.setSize(300, 200);
  9.  
  10. Container c = getContentPane();
  11. MyPanel janela = new MyPanel();
  12. c.add(janela);
  13.  
  14. setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
  15.  
  16. this.setVisible(true);
  17.  
  18. }
  19.  
  20. public static void main(String[] args) {
  21. new Principal();
  22. }
  23. }
Add Comment
Please, Sign In to add comment