Need Help with a Submit buttom and textField

Discussion in 'Java' started by Teresa, Oct 10, 2006.

  1. Teresa

    Teresa Guest

    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);
    }
    Teresa, Oct 10, 2006
    #1
    1. Advertising

  2. Teresa wrote:
    > I need this to work ..


    Please refrain from multi-posting..

    Andrew T.
    Andrew Thompson, Oct 10, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Joana

    Datagrid Buttom Column

    Joana, Mar 3, 2005, in forum: ASP .Net
    Replies:
    2
    Views:
    647
    =?Utf-8?B?RG90TmV0SmVyb21l?=
    Mar 3, 2005
  2. Daniel Nielsen
    Replies:
    1
    Views:
    371
    Daniel Nielsen
    Apr 15, 2006
  3. John Carson

    Open a formView on buttom Clicked

    John Carson, Apr 29, 2006, in forum: C++
    Replies:
    1
    Views:
    399
    Daniel
    Apr 29, 2006
  4. George

    Prevent "Back" Buttom in Browser

    George, Jul 6, 2005, in forum: ASP General
    Replies:
    6
    Views:
    151
    Aaron Bertrand [SQL Server MVP]
    Jul 7, 2005
  5. Rob
    Replies:
    2
    Views:
    67
    Evertjan.
    May 8, 2004
Loading...

Share This Page