java projects

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 »

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 »

Fish Inventory Shop using Java

This tutorial will teach you  to make a small Fish shop Inventory  system using Java. The following  system will use to manage the Fish shop. paste the code inside the ok button String item = txtstatus.getSelectedItem().toString(); double fish = Double.parseDouble(txtqty.getText()); if(item.equals(“KG”)) { double cal = (fish * 140) ; txtbill.setText(String.valueOf(cal)); } else { double cal

Fish Inventory Shop using Java Read More »