I am using NetBeans
i have a 'Search by employee id' button .
I want when user click this button a dialogue box appear which take employee_id as input from user . then that input be used for fethcing data from the database ( desired table in DB has primary key emp_id ).
How can i do this ? I just want to use the Input (as String) given by user in dialogue box ..
Thanx In Advance..
Use following command:
String empname=JOptionPane.showInputDialog(null, "Employee Name:", "Enter Employee", JOptionPane.OKCANCEL_OPTION);