Monday , September 23 2019

Java

JAVA #32 – Java application using SQL server (Part: 04)

Read More »

JAVA #32 – Java application using SQL server (Part: 03)

Submit Button Code String INTPUTQUERY = "Insert into tblUser Values('"+txtName.getText().toString()+"','"+txtEmail.getText().toString()+"','"+txtPass.getText().toString()+"',"+txtAge.getText().toString()+")"; objDB = new DBContext(); try { objDB.ExeQuery(INTPUTQUERY); } catch (ClassNotFoundException ex) { Logger.getLogger(frmMain.class.getName()).log(Level.SEVERE, null, ex); } catch (SQLException ex) { Logger.getLogger(frmMain.class.getName()).log(Level.SEVERE, null, ex); } ResetInsert(); JOptionPane.showMessageDialog(this, "Data Inserted"); Show Button Code String ShowQuery = "Select * From tblUser"; objDB = …

Read More »

JAVA #32 – Java application using SQL server (Part: 02)

Download both the files form here: Microsoft JDBC Driver 4.2 for SQL Server sqljdbc4-2.0.jar DBContext Class code: // DBContext Class package guidatainsertion; import java.sql.Connection; import java.sql.Driver; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; public class DBContext { String strCon = "jdbc:sqlserver://localhost;"+ "database=GUIApp;"+ "user=sa;"+ "password=123"; String strJDBC = "com.microsoft.sqlserver.jdbc.SQLServerDriver"; public …

Read More »

JAVA #32 – Java application using SQL server (Part: 01)

  In this part we made the GUI front end of a Application.

Read More »

JAVA #31 – Exception Handling In Java

Video In Progress…

Read More »

JAVA #30 – Frist GUI Application In Java

// Project Name FirstGUIApp and JFrame Form Name frmMain /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package firstguiapp; import javax.swing.JOptionPane; /** * * @author faheem …

Read More »

JAVA #29 – Introduction of GUI in Java

Introduction to Java GUI Types of Desktop GUI in Java: AWT Swings   Abstract Window Toolkit (AWT) is a set of application program interfaces ( API s) used by Java programmers to create graphical user interface ( GUI ) objects, such as buttons, scroll bars, and windows.AWT is part of the Java Foundation Classes ( JFC …

Read More »