Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Need Help with a Submit buttom and textField

Reply
Thread Tools

Need Help with a Submit buttom and textField

 
 
Teresa
Guest
Posts: n/a
 
      10-10-2006
I need this to work with a sibmit button and call the information into a
GUI, Can somone please help?

String arg = e.getActionCommand();

//created a function for the patient ID (this is the key in the hashtable)
to be entered and brought up in the System window.
if (arg == "Submit")
{
PatIn patin;
patinToGet = pa.getPID();
patin = (PatIn)ph.get(patinToGet);
if(patin == null)
System.out.println("no match for "+ patinToGet);
else
System.out.println("Patient's ID =" + patin.getPID());
System.out.println("Patient Name = " + patin.getPaInName());
System.out.println("Patient Phone = " + patin.getPhN());
System.out.println("Patient DOB = " + patin.getDOB());
System.out.println("Patient StreetAddress = " + patin.getPaStAddress());
System.out.println("Patient City, State, Zip = " + patin.getCiStZp());
System.out.println("Insurance Provider ID = " + patin.getIPID());
System.out.println("Physician ID = " + patin.getPhID());
InsuranceProvider insuranceprovider;
insuranceproviderToGet = patin.getIPID();
insuranceprovider = (InsuranceProvider)ip.get(insuranceproviderToGet);
if(insuranceprovider == null)
System.out.println("no match for " + insuranceproviderToGet);
else
System.out.println("Insurance Name = " + insuranceprovider.getIpName());
System.out.println("Insurance Phone No. = " +
insuranceprovider.getPhoneNumber());
System.out.println("Insurance Address = " +
insuranceprovider.getAddress());
System.out.println("Insurance City, State, ZipCode = " +
insuranceprovider.getIpCiStZp());
System.out.println("Insurance Provide State Code = " +
insuranceprovider.getSC());

PhysiciansInformation physiciansinformation;
physiciansinformationToGet = patin.getPhID();
physiciansinformation =
(PhysiciansInformation)phi.get(physiciansinformati onToGet);
if(physiciansinformation == null)
System.out.println("no match for " + physiciansinformationToGet);
else
System.out.println("Physician Name = " +
physiciansinformation.getPhName());
System.out.println("Physician Phone No. = " +
physiciansinformation.getPhPhno());
System.out.println("Physician Address = " +
physiciansinformation.getPhStAd());
System.out.println("Physician City, State, Zipcode = " +
physiciansinformation.getPhCiStZP());
System.out.println("Physician State Code = " +
physiciansinformation.getPhStCo());

}


if (arg == "Exit") //created and exit statement when exit button
is pressed.
{
System.exit(0);
}


 
Reply With Quote
 
 
 
 
Andrew Thompson
Guest
Posts: n/a
 
      10-10-2006

Teresa wrote:
> I need this to work ..


Please refrain from multi-posting..

Andrew T.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Open a formView on buttom Clicked John Carson C++ 1 04-29-2006 02:12 PM
Please help a newbie (putting a link at buttom of page) Daniel Nielsen HTML 1 04-15-2006 05:59 PM
Prevent "Back" Buttom in Browser George ASP General 6 07-07-2005 05:48 PM
Datagrid Buttom Column Joana ASP .Net 2 03-03-2005 11:53 AM
Bookmark buttom in Firefox D Cheung Firefox 2 02-07-2005 03:30 AM



Advertisments