Postingan

Menampilkan postingan dari April, 2022

MENGHUBUNGKAN JAVA KE MYSQL

 /*  * To change this license header, choose License Headers in Project Properties.  * To change this template file, choose Tools | Templates  * and open the template in the editor.  */   import java.sql.*; /**  *  * @author PC  */    public class Koneksi {       public static void main(String Args[]){       Koneksi.konek();       }   static final String driver = "com.mysql.jdbc.Driver";   static final String db = "jdbc:mysql://localhost/db_ayu";   static final String user = "root";   static final String password = "";   static Connection conn; public static void konek(){     try{         Class.forName(driver);         conn = DriverManager.getConnection(db,user,password);         System.out.println("Koneksi Berhasil"); }     catch (Exception e){         System.out.p...

SOURCE CODE FORM LOGIN PENJUALAN

Gambar
 /*  * To change this license header, choose License Headers in Project Properties.  * To change this template file, choose Tools | Templates  * and open the template in the editor.  */ package projek; import javax.swing.JOptionPane; import org.jcp.xml.dsig.internal.dom.ApacheData; /**  *  * @author LENOVO-USER  */ public class formlogin extends javax.swing.JFrame {     /**      * Creates new form formlogin      */     public formlogin() {         initComponents();     }     /**      * This method is called from within the constructor to initialize the form.      * WARNING: Do NOT modify this code. The content of this method is always      * regenerated by the Form Editor.      */     @SuppressWarnings("unchecked")     // <editor-fold defaultstate="collapsed" desc="Generated Co...