java

Java Simple Movie Ticket System Project

The Movie Ticket System system is developed using Java. This project is suitable for java beginners who wants to improve java skills. [adToAppearHere] Paste the code Inside the Add Button txtcount.setText(“”); int numbers = Integer.parseInt(txtticket.getText()); int tot = numbers * 20; txttotal.setText(String.valueOf(tot)); for(int x=1; x <= numbers; x ++) { txtcount.setText(txtcount.getText()+”Your Ticket No ” + x + “\n” ); […]

Java Simple Movie Ticket System Project Read More »

Record Navigation using Java Mysql Examples

This tutorial will teach you how to make Record Navigation using Java Mysql. First we have to Connect to  Database create the method connect() public void connect() { try { Class.forName(“com.mysql.jdbc.Driver”); con = DriverManager.getConnection(“jdbc:mysql://localhost/apocompany”,”root”,””); stat = con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_READ_ONLY); rs = stat.executeQuery(“select id,custname,loantype,amount from loan”); } catch (ClassNotFoundException ex) { ex.printStackTrace(); } catch (SQLException ex) { ex.printStackTrace();

Record Navigation using Java Mysql Examples Read More »

Month Find Example using Java

This tutorial will teach you how to make Month Find Example using Java. Paste the code inside the find button int mnum; mnum = Integer.parseInt(txtmnumber.getText()); switch (mnum) { case 1: txtmonth.setText(“January”); break; case 2: txtmonth.setText(“February”); break; case 3: txtmonth.setText(“March”); break; case 4: txtmonth.setText(“April”); break; case 5: txtmonth.setText(“May”); break; case 6: txtmonth.setText(“June”); break; case 7: txtmonth.setText(“July”);

Month Find Example using Java Read More »

Calculating manpower project using java

This tutorial will teach you how to alculating manpower project using java. Paste the code inside the Cal Button double projectdays,projecthours,works,tot; projectdays = Double.parseDouble(txtdays.getText()); projecthours = Double.parseDouble(txthours.getText()); projectdays = Double.parseDouble(txtemp.getText()); tot = projectdays * projecthours * projectdays; txttot.setText(String.valueOf(tot)); Paste the code inside the Exit Button System.exit(0);  

Calculating manpower project using java Read More »

JCombo box Search using Java mysql

This tutorial will teach you how to search records using JComboBox Java and Mysql. we will teach step by step. First we have to load the JComboBox following code will help you to load the Jcombobox private void employeeID() { try { Class.forName(“com.mysql.jdbc.Driver”); con = DriverManager.getConnection(“jdbc:mysql://localhost/melwa”,”root”,””); pst = con.prepareStatement(“select * from employee”); ResultSet rs =

JCombo box Search using Java mysql Read More »

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 »