Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package myjava;
- import java.sql.*;
- public class GuiInsert extends javax.swing.JFrame {
- private Connection conn;
- public GuiInsert() {
- initComponents();
- /** try{
- Class.forName("com.mysql.jdbc.Driver");
- conn = DriverManager.getConnection("jdbc:mysql://localhost/my3csd","root","12345");
- statusTextArea.setText("Connection SUCCESSFUL!");
- }
- catch(Exception e){
- statusTextArea.setText( e.getMessage() );
- }**/
- conn = GuiMain.conn;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement