Help how to Call a New Form

Anyone there that can help me how to call a new form...
Actually I have 3 forms.... the Parent, and 2 child...
child a
child b
I extend JFrame to the Parent...
I extend JDialog to the child....
I want to know how to call child a by the child b.....
this is my code in calling them....
when i'm in the form_b, i used this code to show form_a....
form_a a = new form_a();
a.setVisible(true);
when i'm in the form_a, i used this code to show form_b....
form_b b = new form_b();
b.setVisible(true);
but the problem is when i call either of the two, there's always a new form for form_a and also for form_b....
I want to call the form without opening a new form... that form also will be visible... is there anyways i can do this.... any help will do.... tenks....

One way would be to have the parent maintain instances of A & B and have public methods for accessing A & B. Something like this. You would have to pass a reference to the parent class to A & B so that they can call the access methods.
public class form_a extends JDialog{
   public form_a (Parent parent){
public class Parent extends JFrame{
   form_a a;
   form_b b;
   public Parent(){
      a = new form_a (this);
      b = new form_b (this);
   public form_a getFormA(){
        return form_a;
   public form_b getFormB(){
       return form_b;
}

Similar Messages

  • Help on how to call a new form

    Anyone there that can help me how to call a new form...
    Actually I have 3 forms.... the Parent, and 2 child...
    child a
    child b
    I used JFrame to the Parent...
    I used JDialog to the child....
    I want to know how to call child a by the child b.....
    this is my code in calling them....
    when i'm in the form_b, i used this code to show form_a....
    form_a a = new form_a();
    a.setVisible(true);
    when i'm in the form_a, i used this code to show form_b....
    form_b b = new form_b();
    b.setVisible(true);
    but the problem is when i call either of the two, there's always a new form for form_a and also for form_b....
    I want to call the form without opening a new form... that form also will be visible... is there anyways i can do this.... any help will do.... tenks....

    One way would be to have the parent maintain instances of A & B and have public methods for accessing A & B. Something like this. You would have to pass a reference to the parent class to A & B so that they can call the access methods.
    public class form_a extends JDialog{
       public form_a (Parent parent){
    public class Parent extends JFrame{
       form_a a;
       form_b b;
       public Parent(){
          a = new form_a (this);
          b = new form_b (this);
       public form_a getFormA(){
            return form_a;
       public form_b getFormB(){
           return form_b;
    }

  • Can anyone help how to call JavaBeans from Forms 6i (Urgent !!!!)

    Hi,
    I'm working on Forms 6i and oracle 8.1.6 database in Client-Server Environment. In forms 6i how to use bean area button. I could able to write a bean program and save it in jar file. But when I attach that to 'bean area', it's not reflecting. Could any one help in this.
    Thanks in advance.
    Murali.

    Hi,
    I'm working on Forms 6i and oracle 8.1.6 database in Client-Server Environment. In forms 6i how to use bean area button. I could able to write a bean program and save it in jar file. But when I attach that to 'bean area', it's not reflecting. Could any one help in this.
    Thanks in advance.
    Murali.

  • How to call a new Form with the same menu-settings then the calling Form

    In Form A we enable/disable some menu-items a runtime.
    When calling Form B we want to use these menu-settings.
    With other words: we don't want to enable-disable this item at eachr Form startup, but once, when the app. is started.
    Somebody an idea ?

    yes.
    bye
    TPD

  • How to call to another form declare in different class ???????

    hi, i'm beginner in j2me...
    I was wondering how to call to other form(class) in the current form...
    For example,
    public class A extends MIDlet implements CommandListener
    public void commandAction(Command d,Displayable s)
    if (d==*OKCommand*)
    if press this OK command, it will be able to show another form declared in the different class...
    How to make it able to call to other form/class(eg.classB)????
    public class B
    //form that will be shown after pressed command OK in class A
    please help if you know...Thanks a lot..... =)

    you MUST have a reference to the other class or MIDlet in the current MIDlet ...
    i think that i have answered to these kind of questions a few month ago.. you should use the 'search' engine to find the topic..
    CLDC and MIDP forum is not a huge forum compare to Java Programming forum so it will be easy !

  • How to call the new page in smartforms

    Hi friends,
    How to call the new page in smartforms.
    Thanks,
    Ravi

    Hi,
    Create a command node and click the 'Go to new page' check box specifying the page u want to go.
    You can enter your condition for which it should branch to a new page in the 'conditions' tab.
    Regards
    Shiva

  • Hi..i am trying to login i message but i cant access ,it thing i forgot my password number, please i need help,how i can reset new password number. please i need help.

    hi..i am trying to login i message but i cant access ,it thing i forgot my password number, please i need help,how i can reset new password number. please i need help.

    Go here.
    Good luck,
    Clinton

  • How to call a Oracle Form from within the oracle APEX application

    Hi,
    I am new for Oracle APEX. I have a requirment where need to call a Oracle form (.fmx file) from within the Oracle APEX application.
    Can someone help me out ?
    it would be a great help.
    Thanks

    This might help you...
    http://roelhartman.blogspot.com/2008/11/integrate-oracle-forms-with-apex.html

  • URL show password when calling a new form

    Forms 10.1.2.0.2
    Java 6.22
    Windows XP
    FireFox 4.0 and IE 8.0
    Hi. When calling another form from within an existing form the new form shows the URL I'm calling, but also includes the parameters I'm passing which happen to include my username and password. Like this:
    http://9.35.32.205:7777/forms/frmservlet?pageTitle=Dropper%20E/M&config=TTMSMENU&form=dropper_em&userid=MYUSER/MYPASS@SPARC20
    {code)
    Is there anyway to suppress the display of the URL or the parameters?
    Any help would be greatly appreciated.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    You said:
    ...When calling another form from within an existing form... Are you calling another form from an already open form using WEB.SHOW? If so, why? There are probably more reasons why you should not do this than the number of reasons to do this. Most importantly is that by opening a new browser to launch another Forms instance, you increase the resource usage on the client, thereby degrading performance.
    Why not use CALL_FORM, OPEN_FORM, or NEW_FORM? With any of these, the next form to open will display in the same browser and no login will be required since the user has already logged in at the first form. If the goal is to achieve multiple instances of the same "first" form, well for security sake, I would recommend the user log in manually each time anyway.

  • How to call Procedure in Forms

    Hi All,
    I'm having 1Form,in that one check box is there if i check that, if i save the form means it should automatically call the procedure.
    Can any one know how to call th procedure inside the Form.When we save form procedure sholud call and Run.
    Bit urget plsss
    Regards
    Siva

    thanks for ur reply,
    i have got the solution
    Cloding the Thread..
    Regards
    Siva

  • How to call a custom form on click of a button?

    We have a requirement to call a custom form on clicking a button which is on a standard form. I cant modify the standard form. Is this possible to handle this event from CUSTOM.pll or forms personalization?
    some sample code will help. Thanks in Advance,
    Message was edited by: 988490e8-2268-414d-b867-9d9a911c0053

    Hi,
    I think you are working with Oracle EBS.
    I don't think so that we can able to call the custom form on clicking button.
    We can call the form from the standard form using both custom.pll and form personalization
    In custom.pll using zoom function we can do this and in form personalization we can call the form by using form function, In both we call the form by creating a special menu in standard from and we used to call.
    So please check further, and let me know if any i can help you any.
    Regards
    Sri     .

  • In Po, How to call different language form ?

    Hi Experts
      For our Japan/China Po form, it has different language. When we create Po and get the output type, How to control which language form it will call?  Since on different language form, some words language is different .
    THanks
    ALice

    Hi greetings
    In general, the Purchase order from will br triggered in the Vendor communication language. ( Maintained in vendor master-General date-Address) provided the Form has been maintained in the specified language in the configuration of output type.
    Gobinathan G

  • How to call existing sap form

    Hi All,
    I have created one addon for MRP in this addon when client click on menu i have to display "Order recomandation"  form which will dispaly in existing MRP functions.
    How to display existing sap form in our menuclick. please help me as soon as possible.
    Regards,
    sri

    Hi Sri,
    This related to SDK so post this thread on SAP Business One SDK. You will get solution asap.
    Thanks
    Sachin

  • How to Call Standard PO Form in my Z program

    Hi All,
    Could you please tell me, How to Call the Standard PO form in my Z program for print priview and printing.
    My requirement is :
    Create Z program with PO Number as Selection screen.When we give the PO Number and Press execute it will show the print priview with printer option.
    Thanks & Regards
    Murali

    Plz refer this.
    REPORT  ZPPR_BOM1.
    TABLES
    TABLES : MAST.  " Material to BOM Link
    *& Internal tables         Begin with it_
    DATA : IT_MAST TYPE MAST OCCURS 0  WITH HEADER LINE.
    DATA: fm_name TYPE rs38l_fnam.
    CLEAR   : IT_MAST.
    REFRESH : IT_MAST.
    *& Parameters       Begin with pr_
    *& Select-options   Begin with so_
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    PARAMETERS:  PR_MATNR LIKE MAST-MATNR OBLIGATORY,
                 PR_WERKS LIKE MAST-WERKS OBLIGATORY.
    SELECTION-SCREEN END OF BLOCK b1.
      SELECT * FROM MAST  INTO TABLE IT_MAST   " Get BOM number
        WHERE MATNR = PR_MATNR
          AND WERKS = PR_WERKS.
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
        EXPORTING
          formname = 'ZPPS_BOM1'
        IMPORTING
          fm_name  = fm_name.
    CALL FUNCTION fm_name "'/1BCDWB/SF00000079'
    EXPORTING
       ARCHIVE_INDEX              =
       ARCHIVE_INDEX_TAB          =
       ARCHIVE_PARAMETERS         =
       CONTROL_PARAMETERS         =
       MAIL_APPL_OBJ              =
       MAIL_RECIPIENT             =
       MAIL_SENDER                =
       OUTPUT_OPTIONS             =
       USER_SETTINGS              = 'X'
    IMPORTING
       DOCUMENT_OUTPUT_INFO       =
       JOB_OUTPUT_INFO            =
       JOB_OUTPUT_OPTIONS         =
       TABLES
         IT_MAST                    = it_mast
    EXCEPTIONS
       FORMATTING_ERROR           = 1
       INTERNAL_ERROR             = 2
       SEND_ERROR                 = 3
       USER_CANCELED              = 4
       OTHERS                     = 5
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.

  • How to call a Oracle Form from within the APEX

    Hi,
    I have a requirment where need to call a oracle form from within the Oracle APEX application?
    I will appriciate if can someone help me out.
    Thanks

    Hi,
    are you working with Forms 6i or 10g?
    If you want to call a forms 10g page. Just use a button with javascript:
    - Target type: URL
    - URL Target: javascript:window.open ('http://<server>:<port>/forms/frmservlet?config=<conf>','Forms window');
    With Forms 6i you can open the directory where your forms file is inside (works just with IE):
    <script type="text/javascript">
    function fnc_window()  {w = open('C:\\FormsFiles', "winLov","scrollbars=yes,resizable=no,width=600,height=400");
    if (w.opener == null)
    w.opener = self;
    </script>Or execute the forms file with vbscript (IE only):
    <script language = "vbscript">
    sub fnc_forms()
    dim progName
    progName = "c:\FormsFiles\myForm.exe"
    set oShell = createobject("wscript.shell") 'create a shell
    '***use the line below to call your app, defined above with the "progName" variable:
    oShell.run(progName)
    end sub
    </script>

Maybe you are looking for

  • How can I get a better deal?

    I've just finished a very unhappy conversation with Customer Support--Verizon STILL doesn't bundle data plans for families like other carriers do, I need a new phone (mine is 3 y.o.), but don't want to shell out another $30/month for another data pla

  • How to set the text in a jtextfield to align to the left

    A quick simple question. I'm populating a jtextfield with text pulled from a record. However the text is too long to fit in the jtextfield and the alignment is set to the right rather than the left. How do I set the alignment of the text in the jtext

  • Trouble opening photos

    I have just made a page on my website for historic weather photos & my weather station info & pics. But when I load the page on my computer, the photos only half open then turn grey. A friend informed me the page is loading fine on their non-mac comp

  • Report with goods supplier data

    Hi Gurus, Any standard report with purchase orders showing also general data of the goods supplier including number, name, address? Regards, Alberto

  • Page Editing Tools Grayed Out

    I have a PDF with no secuirty restrictiosn for editing, etc.  I am trying to crop and rotatate the document in Acrobat Pro X, and these tools are "grayed" out.  Why are they grayed out?