Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package gerenciadoreslayout;
- import javax.swing.*;
- import java.awt.*;
- public class GerenciadoresLayout {
- public static void main(String[] args) {
- GerenciadoresLayout sistema = new GerenciadoresLayout();
- sistema.iniciar();
- }
- public void iniciar() {
- JFrame janela = new JFrame();
- JButton botao = new JButton("Click aqui");
- janela.getContentPane().add(BorderLayout.EAST, botao);
- janela.setSize(200,200);
- janela.setVisible(true);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement