Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package cursos;
- import javax.swing.JCheckBox;
- import javax.swing.JFrame;
- import javax.swing.JPanel;
- public class Disciplinas {
- public static void main(String[] args) {
- JFrame frame = new JFrame("Sistemas para Internet");
- frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
- JPanel panel = new JPanel();
- JCheckBox dis1 = new JCheckBox("Algoritmo");
- JCheckBox dis2 = new JCheckBox("Sistemas Operacionais");
- JCheckBox dis3 = new JCheckBox("Metodologia e Linguagem de Programação Avançada");
- JCheckBox dis4 = new JCheckBox("Analise de Projetos");
- JCheckBox dis5 = new JCheckBox("Sistemas de informação");
- panel.add(dis1);
- panel.add(dis2);
- panel.add(dis3);
- panel.add(dis4);
- panel.add(dis5);
- frame.setContentPane(panel);
- frame.setVisible(true);
- frame.pack();
- }
- }
- package cursos;
- import javax.swing.JComboBox;
- import javax.swing.JFrame;
- import javax.swing.JPanel;
- public class Cursos {
- public static void main(String[] args) {
- JFrame frame = new JFrame("Cursos");
- frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
- JPanel panel = new JPanel();
- JComboBox<String> box = new JComboBox<String>();
- box.addItem("Medicina");
- box.addItem("Odontologia");
- box.addItem("Administração");
- box.addItem("Contabilidade");
- box.addItem("Psicologia");
- panel.add(box);
- frame.setContentPane(panel);
- frame.setVisible(true);
- frame.pack();
- }
- }
- package login;
- import javax.swing.JButton;
- import javax.swing.JFrame;
- import javax.swing.JLabel;
- import javax.swing.JPanel;
- import javax.swing.JPasswordField;
- import javax.swing.JTextField;
- public class Login {
- public static void main(String[] args) {
- JFrame frame = new JFrame("Login");
- frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
- JPanel panel = new JPanel();
- JLabel user = new JLabel("Login");
- JLabel pass = new JLabel("Senha:");
- JButton button = new JButton("Entrar");
- JTextField userData = new JTextField(20);
- JPasswordField passData = new JPasswordField(10);
- panel.add(user);
- panel.add(userData);
- panel.add(pass);
- panel.add(passData);
- panel.add(button);
- frame.setContentPane(panel);
- frame.setVisible(true);
- frame.pack();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement