Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package interfacesgraficas;
- import javax.swing.*;
- public class InterfacesGraficas {
- public static void main(String[] args) {
- JFrame frame = new JFrame();
- JButton button = new JButton("Clique aqui");
- frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
- frame.getContentPane().add(button);
- frame.setSize(300,300);
- frame.setVisible(true);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement