Java

Batch Processing Java JDBC Gui

This tutorial will teach you how to make a Batch Processing Java JDBC Gui application. Establish the database Connection Connection con; PreparedStatement pst; ResultSet rs; public void Connect() { try { Class.forName(“com.mysql.jdbc.Driver”); con = DriverManager.getConnection(“jdbc:mysql://localhost/vmproducts”,”root”,””); } catch (ClassNotFoundException ex) { } catch (SQLException ex) { } } Select the txtaccountno textfield right click >Key->Event->KeyReleased past […]

Batch Processing Java JDBC Gui Read More »

Batch Program in Java JDBC

The group of update statements that are sent to a database to be executed as a single unit called batch in java. import java.sql.*; public class Batch{ public static void main(String[] args) { Connection con=null; try{ Class.forName(“com.mysql.jdbc.Driver”); con = DriverManager.getConnection(“jdbc:mysql://localhost/vbank”,”root”,””); Statement st1=con.createStatement( ); String SQL1=”insert into account (accno,bal) values(‘A0008’,2500) “; String SQL2=”insert into account (accno,bal)

Batch Program in Java JDBC Read More »

Key Release Event Java and Mysql

This tutorial will teach you how to find the account holder balance  using Key Release Event Java and Mysql. Key Release Event Search Select the txtaccountno textfield right click ->Key->Event->KeyReleased past the code inside the KeyReleased  event private void txtaccnoKeyReleased(java.awt.event.KeyEvent evt) { Connection con; PreparedStatement pst; ResultSet rs; String accno = txtaccno.getText(); try { Class.forName(“com.mysql.jdbc.Driver”);

Key Release Event Java and Mysql Read More »

Auto no generator using java mysql

This tutorial which help you to generating auto no using java and mysql. Establish the database Connection public void Connect() { try { Class.forName(“com.mysql.jdbc.Driver”); con = DriverManager.getConnection(“jdbc:mysql://localhost/gshop”,”root”,””); } catch (ClassNotFoundException ex) { } catch (SQLException ex) { } } Auto no generator.create the function Custno(). public void CustNo() { int custno = 1; try {

Auto no generator using java mysql Read More »

ProgressBar using Java

This java projects tutorial will teach you how to make the java progressbar.once the progress bar reached 100% it will show the Main Form.i am giving many java projects with source code. import java.util.logging.Level; import java.util.logging.Logger; public class pro extends javax.swing.JFrame { public pro() { initComponents(); } public static void main(String args[]) { pro sc

ProgressBar using Java Read More »

Socket Programming Java Networking

This tutorial will teach you Java Networking programming step step.the  TCP protocol starts only when the connection between client and server sockets is established.The server socket listens for a request for connection sent by client sockets and establishes the connection.once the client and server applications are connected,they can communicate with each other.i wrote the example

Socket Programming Java Networking Read More »