daily pastebin goal
50%
SHARE
TWEET

Untitled

a guest Jun 18th, 2017 45 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package myjava;
  2. import java.sql.*;
  3.  
  4. public class GuiInsert extends javax.swing.JFrame {
  5.  
  6.     private Connection conn;
  7.  
  8.  
  9.     public GuiInsert() {
  10.         initComponents();
  11.  
  12.       /**  try{
  13.             Class.forName("com.mysql.jdbc.Driver");
  14.             conn = DriverManager.getConnection("jdbc:mysql://localhost/my3csd","root","12345");
  15.             statusTextArea.setText("Connection SUCCESSFUL!");
  16.         }
  17.         catch(Exception e){
  18.             statusTextArea.setText( e.getMessage() );
  19.         }**/
  20.         conn = GuiMain.conn;
  21.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top