Advertisement
Guest User

Untitled

a guest
Jun 18th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement