Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import javax.swing.*;
- import java.awt.*;
- public class Form extends JFrame
- {
- JLabel lb_titulo;
- JButton bt_cadastro;
- JTextField tf_nome;
- public Form()
- {
- setTitle("ProRat");
- setSize(600, 400);
- setLocation(70, 70);
- setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
- setResizable(false);
- getContentPane().setBackground(new Color(10, 140, 120));
- lb_titulo = new JLabel("Aula POO");
- bt_cadastro = new JButton("Cadastro");
- tf_nome = new JTextField("");
- bt_sair - new
- getContentPane().add(lb_titulo);
- getContentPane().add(bt_cadastro);
- getContentPane().add(tf_nome);
- }
- public static void main(String[] args) {
- Form obj_form = new Form();
- obj_form.show();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement