import java.sql.* ; import javax.swing.*;
public class JDBCMySQLApplication extends JFramę {
String url = ',jdbc:mysql://localhost/myDatabaseName";
String password = "mypassword”;
String text =
public JDBCMySQLApplication() {
super("JDBCMySQLApplication"); try {
Class.forName("com.mysąl.jdbc.Driver");// load driver } catch (ClassNotFoundException classNotFound) { JOptionPane.showMessageDialog(nuli,
classNotFound.getMessage(), ”Driver Not Found", JOptionPane.ERROR_MESSAGE);
System.exit(1);
ł
Wykład 15
right g 2012 Jan PROKOP