Advertisement
fabioceep

JAVA: Interfaces Gráficas (PG254)

Feb 20th, 2020
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.41 KB | None | 0 0
  1. package interfacesgraficas;
  2.  
  3. import javax.swing.*;
  4.  
  5. public class InterfacesGraficas {
  6.  
  7.     public static void main(String[] args) {
  8.         JFrame frame = new JFrame();
  9.         JButton button = new JButton("Clique aqui");
  10.         frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
  11.         frame.getContentPane().add(button);
  12.         frame.setSize(300,300);
  13.         frame.setVisible(true);
  14.     }
  15.    
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement