java

Java Color Change Example

This Example will teach you how to do the Java Color Change step by step Paste the Code inside the ok button String name = txtName.getText(); if(Option.getSelectedItem().equals(“Red”)) { txtMsg.setText(name); txtMsg.setForeground(Color.RED); } else if(Option.getSelectedItem().equals(“Green”)) { txtMsg.setText(name); txtMsg.setForeground(Color.GREEN); } else { txtMsg.setText(name); txtMsg.setForeground(Color.BLUE); } i have attached the video link below. which will do this tutorials step

Java Color Change Example Read More »

Invoice No Generating using Java and Mysql

This tutorial will teach you how to generating Auto Invoice No using Java and Mysql.this example will important for developing the inventory management system project. FirstStep  : we have to establish the database connection Connection con; PreparedStatement pst; public void Connect() { try { Class.forName(“com.mysql.jdbc.Driver”); con = DriverManager.getConnection(“jdbc:mysql://localhost/mcafe”, “root”, “”); } catch (ClassNotFoundException ex) {

Invoice No Generating using Java and Mysql Read More »