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;
}

Similar Messages

  • 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;
    }

  • 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

  • How to call a custom form with parameter throgh apps personalization?

    Hi All,
    I have developed a custom form in 10g and register it to apps r12. I am calling this form through personalization by lauch a function associated with form.
    Issue is this, I want to pass a parameter to this form from apps eg. Receipt_num.
    I want to get Receipt_Num value from apps form and pass it to custom form.
    Pleas help me how can I do thi?
    Thanks
    Farooq

    Hi,
    So We have a standard form for example (purchase order form) and ur custom form is called by using the menu created by form personalization. So When you open the purchase order form and query for one purchase order number for example 2000, so this purchase order number need to be passed to your custom form field(purchase order number)
    Correct.
    Please follow this link,i have done the same thing and its working fine.
    http://erpschools.com/articles/forms-personalization-tutorial
    Thanks & Regards
    Srikkanth.M    

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

  • Help! how do I add  new languages

    Hi...Does anyone know how to add a new language in OS that I didn't install when i installed my OS X? and when I change my language into Japanese, it shows the language on the bar at the top but not in finder...does that mean that i didn't install the language properly? how do i fix it? my gf is learning japanese now, so i would like to create a account for her in my computer under japanese... this bothers me a lot...
    thanks for the help tho..

    Hi...Does anyone know how to add a new language in OS
    that I didn't install when i installed my OS X? and
    when I change my language into Japanese, it shows the
    language on the bar at the top but not in
    finder...does that mean that i didn't install the
    language properly? how do i fix it?
    Did you follow the normal language changing procedure of moving Japanese to the top of the list in system prefs/international/languages and then logging out and logging in again?
    To reinstall Japanese, try running the Language Translations installer found in the OptionalInstalls.mpkg of the Tiger DVD.

Maybe you are looking for

  • Using asdoc to generate documentation:  google analytics?

    I'm using the asdoc.exe program that came with Flex Builder 3 to generate documentation for FlashMOG. I want to put in my google analytics javascript before the closing body tag of each file.  Is there some way to get asdoc to do this?

  • Creation of System Alias between Portal and E Sourcing System

    Hi Team, I would like to create a System Alias between SAP Portal 7.4 and E Sourcing System 10.0. I would like to know during the creation of System Object which template i need to take (is it http System or R/3 System using Load Balancing). If it is

  • Please can someone shed some light on what I should do, new to the mac

    Hi all I am looking to purchase a mac, with final cut pro 2. I want all the feature of FCP2 to work smoothly on my mac, so the system requirements need to be up to scratch! Does anyone have a super smooth running mac with FCP2 on it? If so, how much

  • Crystal Reports version 8.5 media needed.

    We have a Crystal Reports server which crashed, and lost it's boot drive. We need to obtain a "prior" version of Crystal Server software, believe it is 8.5 Install media to complete rebuild of this function. Our backups had corrupted files on them, a

  • How to install/download an english language pack

    Hi there I've just bought Adobe CS6 for my study and didnt notice it was the Dutch version. I was wondering where I could download an english version because all of the workshops I get on school are in english. Thnx, S. Dubbeld