Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package guibd;
- import java.awt.Container;
- import java.sql.Connection;
- import java.sql.Statement;
- import javax.swing.JFrame;
- import javax.swing.JLabel;
- import javax.swing.SpringLayout;
- class Conexao {
- public Conexao() {
- String nomeJDBC = "jdbc:mysql://localhost/discdb";
- String nomeUser = "root";
- String password = "";
- Statement statement = null;
- Connection connection = null;
- String nome = "RECORDS";
- try {
- Class.forName("com.mysql.jdbc.Driver");
- }
- }
- }
- public class Frame extends JFrame{
- private JLabel jtextCodDisco;
- private JLabel jtextTitulo;
- private JLabel jtextGenero;
- private JLabel jtextCodArt;
- private JLabel jtextCodGrav;
- public Frame() {
- super("DAO+GUI");
- jtextCodDisco = new JLabel("Código Disco");
- add(jtextCodDisco);
- add(new JLabel(" | "));
- }
- public static void main(String[] args) {
- Frame frame = new Frame();
- Container container = frame.getContentPane();
- SpringLayout layout = new SpringLayout();
- container.setLayout(layout);
- frame.pack();
- frame.setDefaultCloseOperation(EXIT_ON_CLOSE);
- frame.setSize(480, 150);
- frame.setVisible(true);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement