Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / October 2006

Tip: Looking for answers? Try searching our database.

Need Help with a Submit buttom and textField

Thread view: 
Teresa - 10 Oct 2006 04:13 GMT
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(physiciansinformationToGet);
   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);
 }
Andrew Thompson - 10 Oct 2006 04:58 GMT
> I need this to work ..

Please refrain from multi-posting..

Andrew T.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.