Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa Swing-AWT How to take input by user using jDialogue and use that input
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


Priyanjan
How to take input by user using jDialogue and use that input
1 Answer(s)      2 years and 7 months ago
Posted in : Swing AWT


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 ..

Please Help!

Thanx In Advance..


Advertisement
View Answers

April 15, 2012 at 3:33 PM


Use following command:

String empname=JOptionPane.showInputDialog(null, "Employee Name:", "Enter Employee", JOptionPane.OKCANCEL_OPTION);



Related Tutorials/Questions & Answers:
How to take input by user using jDialogue and use that input
How to take input by user using jDialogue and use that input  I am... this button a dialogue box appear which take employee_id as input from user... has primary key emp_id ). How can i do this ? I just want to use the Input
How to read user input in C++
How to read user input in C++  How can i get an input from the users in C++?   You can use the standard input "cin" to get the input from user.. For example: int age; cin >> age
Advertisements
Take input in batch file
Take input in batch file  How to take input in batch file? Thanks   Hi, You can use the following line of code in your batch file: set... entered by user. Thanks
how to take input table name in jsp to create table in mysql?
how to take input table name in jsp to create table in mysql?  how to take input table name in jsp to create table in mysql?   Hello Friend...="post"> Enter Table Name:<input type="text" name="table"><input type
Java User Input
Java User Input  I am using Scanner class for user Input. Scanner s = new Scanner(System.in); String name = s.next(); but i am unable to store full name in name variable...how i can store full name plsss reply   use
escaping user input in php
escaping user input in php  Is it possible to escape the user input while submitting data into database in PHP
calculation after if. user input
initialized How do i initalize appleCost ect if its inside an if and it needs user input????   My apologies good evening peoples Once again I am...calculation after if. user input  System.out.print ("please select
button to accept user input
Studentinfoview(this)); connectDB(); } i cant figure how i am going to declare the radiobutton and spinner.The user input does not show on my Studentinfo.mdb...button to accept user input  private void jButton1ActionPerformed
input
input  a java program that will exchange the last names of two students that were input by a user
user input to database
user input to database  /* * Studentinfo2App.java */ package studentinfo2; import java.sql.Connection; import java.sql.DriverManager; import... in my database user input from my applet does not show
user input to database
user input to database  /* * Studentinfo2App.java */ package studentinfo2; import java.sql.Connection; import java.sql.DriverManager; import... in my database user input from my applet does not show
user input to database
user input to database  /* * Studentinfo2App.java */ package studentinfo2; import java.sql.Connection; import java.sql.DriverManager; import... in my database user input from my applet does not show
Java get User Input
Java get User Input       In this section, you will learn how to get the user input from... that will communicate with the user at the command line and returns the user input. We have
java user input - Java Beginners
java user input  how to input from keyboard? please give a example.  Hi Friend, There are lot of ways to input data from keyboard.You can use BufferedReader class, Scanner class, StreamTokenizer class
iPhone Input Field, iPhone Input Field Tutorial
iPhone Input Field Generally, input fields are used to take input from the users.  In iPhone application we can use Text Field to take the input. ... This is a very simple "iPhone input field" example that will show you how to use
How to create an input box?
How to create an input box?  How to create an input box
user input in java - Java Beginners
user input in java   i am trying to write a code to compute the average of 5 numbers but i dont know what to do for the program to accept user input  Hi import java.util.*; public class AverageExample { public
error in taking input from user.
error in taking input from user.  //i m having problem inputting the array from user.my program is import java.io.*; class bubble { public static void main(String args[]) { int a[]=new int[20]; int i=0; BufferedReader br=new
How to get the full path location using <input type=file>
How to get the full path location using input type=file  Hi. I have used input type=file> in HTML to select an image. But it selects only the image but not with its full path location. how to do it? Thanks in advance
Managing Multiple User Input Data in an Array (or ArrayList)
Managing Multiple User Input Data in an Array (or ArrayList)  Hey there! I need to make a code of an employee record. Here's how it should work: (1... record alphabetically (2) If user chooses choice1, the input data is stored
XP Bowling Game User input help
XP Bowling Game User input help  I was asked to do the XP Bowling... to make the code accept input from a user and display the scores/frames in a command window. Being new to Java....I have no clue how to out put it to the console
Save the input data until user get changed
Save the input data until user get changed  I would like to know how to store the give input data and perform the calculations even after re-opening... know how to change the fine amount and store for a day by the ADMINISTRATOR
Save the input data until user get changed
Save the input data until user get changed  I would like to know how to store the give input data and perform the calculations even after re-opening... know how to change the fine amount and store for a day by the ADMINISTRATOR
Save the input data until user get changed
Save the input data until user get changed  I would like to know how to store the give input data and perform the calculations even after re-opening... know how to change the fine amount and store for a day by the ADMINISTRATOR
Write a program that takes the marks of user as input
Write a program that takes the marks of user as input  Write a program that takes the marks of user as input. If marks are greater then 60... not understand how to write a program like this and thank you
Display PHP clock with user input date and time
Display PHP clock with user input date and time  The following PHP code displays a clock with current date and time. I want the clock to receive user input date and time. How can this be done? <?php date<em>
Array and input
[ ]={1,2,3,4,5,6,7,8,9,10,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26}; i want to ask user to input one of the above numbers then i want to print the array without the number user input. how will i do tht
How to create file from input values in Jframe ?
How to create file from input values in Jframe ?  hi i m doing my project using java desktop application in netbeans.i designed a form to get the user's academic details and on clicking the submit button,it displays all
Getting ISD code when user input country name
Getting ISD code when user input country name  I want to create program which user needs by typing Country name he will get ISD code of that country... code, from that list i have to read the file and when user input any country name
how to transliterate the input from english to japanese
how to transliterate the input from english to japanese  Hi everyone , I am trying to make an application in java in which i want to get input from user and want to transliterate it in japanese for example : if user types "sa
Show text field & check input using jQuery
input using jQuery. In the below example, aIn this tutorial, we will discuss about how to display 'text field' by a button click & check input using...Show text field & check input using jQuery In this tutorial, we
Advertisements
 

 

 

DMCA.com