java

Cash Issue System using Java

This tutorial will teach you how to make a Cash Issue System using Java Step by Step. First Select the textfield right click-> AddEvent Handler-> key-> keyRelased public void keyReleased(KeyEvent e) { double a = Double.parseDouble(txt1000.getText()) * 1000; txttot1000.setText(String.valueOf(a)); } Do each textfield same thing like above. After that Paste the Code inside the ok […]

Cash Issue System using Java Read More »

Retirement date Calculating System Java

This tutorial will teach you how to make a Retirement date Calculating System Step by Step. Paste the Code inside the Ok button SimpleDateFormat df = new SimpleDateFormat(“yyyy-MM-dd”); String issuedate = df.format(jdate.getDate()); Calendar c = Calendar.getInstance(); txtjdate.setText(df.format(c.getTime())); c.add(Calendar.YEAR, 40); txtrdate.setText(df.format(c.getTime())); I have attached the video tutorial below it will help you  to do this  step by step.  

Retirement date Calculating System Java Read More »

Java Mysql simple project in Eclipse

This JDBC will teach you how to do the search in Eclipse using Mysql Database. First Step :  Establish the database connection in order to connect java and mysql. i attached the code below. Connection con; PreparedStatement pst; public void Connect() { try { Class.forName(“com.mysql.jdbc.Driver”); con = DriverManager.getConnection(“jdbc:mysql://localhost/bill”, “root”,””); } catch (ClassNotFoundException ex) { ex.printStackTrace();

Java Mysql simple project in Eclipse Read More »

Advanced Employee Salary System Using Java

This tutorial will teach you Advanced Employee Salary Calculation System Using Java step by step. Paste the code inside the cal button double empname,sal,etf,epf,etfamount,epfamount,gsal,allow,nsal; private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) { sal = Double.parseDouble(txtsal.getText()); if(chketf.isSelected()== true) { etfamount = sal * 10/100; } if(chketf.isSelected()== true) { epfamount = sal * 5/100; } txtetf.setText(String.valueOf(etfamount)); txtepf.setText(String.valueOf(epfamount)); gsal = sal

Advanced Employee Salary System Using Java Read More »

Currency Converter Using Java

This tutorial will teach you how to make make a Currency Converter Using Java step by step. Paste the below the code inside the convert button. private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) { Double tot; Double amount = Double.parseDouble(txtamount.getText()); if(txtfrom.getSelectedItem().toString() == “USD” && txtto.getSelectedItem().toString() == “Srilankan Rupees”) { tot = amount * 179.50; JOptionPane.showMessageDialog(this, “Your Amount will

Currency Converter Using Java Read More »

CRUD Operations in Java using JDBC and MySQL (With Code Examples)

If you are looking for how to develop a Java application that connects with a MySQL database and performs basic operations such as Create, Read, Update, and Delete, then you are in the right place. Here you will learn Java Database Connectivity (JDBC) step by step with examples. We will be using JDBC, Java, and MySQL, which are very popular for use in Java mini projects. What is CRUD? CRUD stands for Create, Read, Update, and Delete. These four actions are

CRUD Operations in Java using JDBC and MySQL (With Code Examples) Read More »